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:10:20 +00:00
parent 5367b5a273
commit 923c78940e

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)
{