From aacf4e583ce2e4e1156ea6aab424b2050a8e2ef2 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Nov 2005 15:38:13 +0000 Subject: [PATCH] Fixed template adaption, for posix tab. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2074 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index a22d30bad..5dca5ea5d 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -1015,6 +1015,17 @@ class posixAccount extends plugin if ($ldap->count() != 1){ $this->primaryGroup= $this->gidNumber; } + + + /* Adjust shadow checkboxes */ + foreach (array("shadowMin", "shadowMax", "shadowWarning", "shadowInactive", + "shadowExpire") as $val){ + + if ($this->$val != 0){ + $oval= "use_".$val; + $this->$oval= "1"; + } + } } function get_next_id($attrib) -- 2.30.2