fixed profile loading

This commit is contained in:
Roland Gruber 2005-05-08 16:50:13 +00:00
parent 317126f6a4
commit 1f3b8614b0
1 changed files with 10 additions and 4 deletions

View File

@ -1057,12 +1057,18 @@ class posixAccount extends baseModule {
$this->groups = $profile['posixAccount_additionalGroup'];
}
// no password
if (isset($profile['posixAccount_userPassword_no'][0])) {
$this->userPassword_nopassword = $profile['posixAccount_userPassword_no'][0];
if ($profile['posixAccount_userPassword_no'][0] == "true") {
$this->userPassword_nopassword = true;
}
elseif ($profile['posixAccount_userPassword_no'][0] == "false") {
$this->userPassword_nopassword = false;
}
// locked password
if (isset($profile['posixAccount_userPassword_lock'][0])) {
$this->userPassword_lock = $profile['posixAccount_userPassword_lock'][0];
if ($profile['posixAccount_userPassword_lock'][0] == "true") {
$this->userPassword_lock = true;
}
elseif ($profile['posixAccount_userPassword_lock'][0] == "false") {
$this->userPassword_lock = false;
}
}