Code

Fixed template adaption, for posix tab.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 15:38:13 +0000 (15:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 15:38:13 +0000 (15:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2074 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index a22d30badc93762995eb7b3446268f8f21845293..5dca5ea5d45f66f37bb663fa34f25218482e67fb 100644 (file)
@@ -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)