fixed problem with ppolicy unlocking
This commit is contained in:
parent
89ade8de45
commit
9b1896f26c
|
@ -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])) {
|
||||
|
|
Loading…
Reference in New Issue