Code

Updated sambaAccount
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jul 2010 09:59:24 +0000 (09:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Jul 2010 09:59:24 +0000 (09:59 +0000)
-A flag wasn't written correctly

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19032 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/samba/personal/samba/class_sambaAccount.inc

index 0398ff7a1254935d3bb98295a6ec2d9dbfbcec80..1ea64c29e873cca5eb0a3a511c5e8c9aa621d462 100644 (file)
@@ -46,7 +46,7 @@ class sambaAccount extends plugin
     var $sambaLogonTime= "0";
     var $sambaLogoffTime= "2147483647";
     var $sambaKickoffTime= "2147483647";
-    var $sambaPwdCanChange= "";
+    var $sambaPwdCanChange= "0";
     var $sambaPwdMustChange= "0";
 
     // Flags (checkboxes) to restrict account settings.
@@ -998,7 +998,7 @@ class sambaAccount extends plugin
         }else{
 
             // Keep old values if given.
-            if ($this->sambaPwdCanChange != 4294967295){
+            if ($this->sambaPwdCanChange != 4294967295 && !empty($this->sambaPwdCanChange)){
                 $this->attrs['sambaPwdCanChange']= $this->sambaPwdCanChange;
             } else {
                 $this->attrs['sambaPwdCanChange']= array();