do NOT force user to change password, if LDAP does NOT support shadowlastchange attribute

This commit is contained in:
Ralf Becker 2011-11-15 10:09:44 +00:00
parent 08aca8ff51
commit 8202298db5

View File

@ -183,6 +183,11 @@ class auth_ldap implements auth_backend
if ($allValues['count'] > 0)
{
if (!isset($allValues[0]['shadowlastchange']))
{
if ($this->debug) error_log(__METHOD__."('$username') no shadowlastchange attribute!");
return false;
}
if ($GLOBALS['egw_info']['server']['case_sensitive_username'] == true &&
$allValues[0]['uid'][0] != $username)
{