Fix bugs with set ldap password.