Code

leading 0 caused ldap errors in attribute Posixy-account
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Sep 2005 12:42:02 +0000 (12:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Sep 2005 12:42:02 +0000 (12:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1287 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 4cf6480132acfc9c1f9b9396e08c708b084aaf9b..6a66a4f6cc7e9f39e6c7904906a8460a25759fa1 100644 (file)
@@ -669,6 +669,7 @@ class posixAccount extends plugin
   /* Save data to LDAP, depending on is_account we save or delete */
   function save()
   {
+       
     /* include global link_info */
     $ldap= $this->config->get_ldap_link();
 
@@ -787,6 +788,10 @@ class posixAccount extends plugin
       $thid->attrs['gosaDefaultPrinter']=array();
     }
 
+       foreach(array("shadowMin","shadowMax","shadowWarning","shadowInactive") as $attr){
+               $this->attrs[$attr] = (int) $this->attrs[$attr];
+       }
+
     /* Save data to LDAP */
     $ldap->cd($this->dn);
     $ldap->modify($this->attrs);