diff --git a/phpgwapi/inc/class.auth_ldap.inc.php b/phpgwapi/inc/class.auth_ldap.inc.php index 6728fe707a..5629d0658b 100644 --- a/phpgwapi/inc/class.auth_ldap.inc.php +++ b/phpgwapi/inc/class.auth_ldap.inc.php @@ -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; }