Code

Fixed copy & paste for the posix flags
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 08:59:26 +0000 (08:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 08:59:26 +0000 (08:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17901 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/class_posixAccount.inc

index 30d53500f74f17047a7d0a9a88cfada614659c2b..8a9defd0ea067a397d62859de069f02e6fc3ae11 100644 (file)
@@ -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;