From 53e6b355ba37cd6ce6058aea1680e9d330090faf Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 Apr 2010 08:59:26 +0000 Subject: [PATCH] Fixed copy & paste for the posix flags git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17901 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/personal/posix/class_posixAccount.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index 30d53500f..8a9defd0e 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -1257,6 +1257,19 @@ class posixAccount extends plugin $this->primaryGroup= $source['gidNumber'][0]; } + + /* Adjust shadow checkboxes */ + foreach (array("shadowMin", "shadowMax", "shadowWarning", "shadowInactive", + "shadowExpire") as $val){ + + if ($this->$val != 0){ + $oval= "activate_".$val; + $this->$oval= "1"; + } + } + + + $tmp = new trustModeDialog($this->config, $source['dn']); $this->trustModeDialog = new trustModeDialog($this->config, $this->dn); $this->trustModeDialog->trustModel = $tmp->trustModel; -- 2.30.2