fixed problem with ppolicy unlocking

This commit is contained in:
Roland Gruber 2012-09-27 16:14:19 +00:00
parent 89ade8de45
commit 9b1896f26c
1 changed files with 9 additions and 0 deletions

View File

@ -1642,6 +1642,15 @@ class accountContainer {
$attributes[$this->finalDN] = $attributes[$this->dn_orig];
unset($attributes[$this->dn_orig]);
}
// remove pwdAccountLockedTime attribute change if also userPassword is changed (PPolicy will remove this attribute itself)
if (isset($attributes[$this->finalDN]['modify']['userPassword'])) {
if (isset($attributes[$this->finalDN]['modify']['pwdAccountLockedTime'])) {
unset($attributes[$this->finalDN]['modify']['pwdAccountLockedTime']);
}
if (isset($attributes[$this->finalDN]['remove']['pwdAccountLockedTime'])) {
unset($attributes[$this->finalDN]['remove']['pwdAccountLockedTime']);
}
}
// pre modify actions
$prePostModifyAttributes = array();
if (isset($attributes[$this->finalDN]) && is_array($attributes[$this->finalDN])) {