fixed changing passwords using ldap

This commit is contained in:
Lars Kneschke 2005-12-02 12:49:50 +00:00
parent f2d06cbe56
commit 3abea0dbe6

View File

@ -156,7 +156,7 @@
$entry['userpassword'] = $this->encrypt_password($new_passwd);
$dn = $allValues[0]['dn'];
if ($old_passwd && $GLOBALS['egw']->auth->encrypt_password($old_passwd) != $allValues[0]['userpassword'] || !@ldap_modify($ds, $dn, $entry))
if (!@ldap_modify($ds, $dn, $entry))
{
return false;
}