fixed problem with ppolicy unlocking
This commit is contained in:
parent
9b1896f26c
commit
0d9bbabf47
|
@ -1643,7 +1643,7 @@ class accountContainer {
|
||||||
unset($attributes[$this->dn_orig]);
|
unset($attributes[$this->dn_orig]);
|
||||||
}
|
}
|
||||||
// remove pwdAccountLockedTime attribute change if also userPassword is changed (PPolicy will remove this attribute itself)
|
// 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']['userPassword']) || isset($attributes[$this->finalDN]['remove']['userPassword'])) {
|
||||||
if (isset($attributes[$this->finalDN]['modify']['pwdAccountLockedTime'])) {
|
if (isset($attributes[$this->finalDN]['modify']['pwdAccountLockedTime'])) {
|
||||||
unset($attributes[$this->finalDN]['modify']['pwdAccountLockedTime']);
|
unset($attributes[$this->finalDN]['modify']['pwdAccountLockedTime']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue