fixes #2782 - LDAP password overwritten as blank