From: hickert Date: Fri, 25 Nov 2005 15:38:13 +0000 (+0000) Subject: Fixed template adaption, for posix tab. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aacf4e583ce2e4e1156ea6aab424b2050a8e2ef2;p=gosa.git Fixed template adaption, for posix tab. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2074 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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)