fixed silent unlocking of passwords

This commit is contained in:
Roland Gruber 2006-06-30 09:31:40 +00:00
parent 5c08dca997
commit 7dc978eaa5
1 changed files with 6 additions and 0 deletions

View File

@ -480,6 +480,12 @@ class posixAccount extends baseModule {
}
}
$this->groups_orig = $this->groups;
// set password options
if (!isset($this->attributes['userPassword'][0])) $this->userPassword_nopassword = true;
else {
if (pwd_is_enabled($this->attributes['userPassword'][0])) $this->userPassword_lock = false;
else $this->userPassword_lock = true;
}
}
/* This function returns an array with 3 entries: