fixed problem with ppolicy unlocking

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

View File

@ -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']);
} }