add object class check for password changes

This commit is contained in:
Roland Gruber 2009-11-24 11:39:41 +00:00
parent def0470d74
commit a3d444cd08
2 changed files with 6 additions and 2 deletions

View File

@ -456,7 +456,9 @@ class phpGroupwareUser extends baseModule implements passwordService {
if (!in_array('posixAccount', $modules)) {
return array();
}
if (in_array_ignore_case('phpgwAccount', $this->attributes['objectClass'])) {
$this->attributes['phpgwLastPasswordChange'][0] = time();
}
return array();
}

View File

@ -519,7 +519,9 @@ class shadowAccount extends baseModule implements passwordService {
if (!in_array('posixAccount', $modules)) {
return array();
}
if (in_array_ignore_case('shadowAccount', $this->attributes['objectClass'])) {
$this->attributes['shadowLastChange'][0] = intval(time()/3600/24);
}
return array();
}