From 7dc978eaa5ae49059e3c1dbe2da8348ef16b8f4d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 30 Jun 2006 09:31:40 +0000 Subject: [PATCH] fixed silent unlocking of passwords --- lam/lib/modules/posixAccount.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index b69cbe25..3f154205 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -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: