From 1f3b8614b0038cad127ec020dcf1fc0189e9eae0 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 8 May 2005 16:50:13 +0000 Subject: [PATCH] fixed profile loading --- lam/lib/modules/posixAccount.inc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 6409c210..e5ada9b8 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -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; } }