Code

Pre-ports from 2.5
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 08:59:42 +0000 (08:59 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Apr 2007 08:59:42 +0000 (08:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5972 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/generic.tpl
plugins/personal/posix/generic.tpl
plugins/personal/samba/class_sambaAccount.inc

index 141bcbf58533c502f6d71e7c5ebaed7694bf54a1..1ccd5cab07ade325458b11550fc124161738cb4e 100644 (file)
@@ -56,7 +56,7 @@
        <LABEL for="gidNumber">{t}Force GID{/t}</LABEL>
       &nbsp;
 {render acl=$gidNumberACL}
-      <input name="gidNumber" size=5 maxlength=5 id="gidNumber" {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
+      <input name="gidNumber" size=9 maxlength=9 id="gidNumber" {$forceMode} value="{$gidNumber}" title="{t}Forced ID number{/t}">
 {/render}
      </td>
     </tr>
index 7f55d6ec8079680df63b37b5e58be6782661e280..cb5f443acb27bd04c483e590d61c47f253c528b1 100644 (file)
@@ -52,7 +52,7 @@
                                        </td>
                                        <td>
        {render acl=$uidNumberACL}
-                                               <input id="uidNumber" name="uidNumber" size=5 maxlength=5 {$forceMode} value="{$uidNumber}">
+                                               <input id="uidNumber" name="uidNumber" size=9 maxlength=9 {$forceMode} value="{$uidNumber}">
        {/render}
                                        </td>
                                </tr>
@@ -63,7 +63,7 @@
                                        </td>
      <td>
        {render acl=$gidNumberACL}
-                                               <input id="gidNumber" name="gidNumber" size=5 maxlength=5 {$forceMode} value="{$gidNumber}">
+                                               <input id="gidNumber" name="gidNumber" size=9 maxlength=9 {$forceMode} value="{$gidNumber}">
        {/render}
                                        </td>
                                </tr>
index c99544ea53285d363d241fc6c763ccf8130f8ffe..879f4e6ba5a6d76b1a66e747ad0c8b901e839049 100644 (file)
@@ -646,6 +646,16 @@ class sambaAccount extends plugin
     unset($this->attrs['uid']);
     unset($this->attrs['uidNumber']);
     unset($this->attrs['gidNumber']);
+
+    /* Remove objectClass for sambaIdmapEntry */
+    $tmp= array();
+    for ($i= 0; $i<count($this->attrs["objectClass"]); $i++){
+      if ($this->attrs['objectClass'][$i] != 'sambaIdmapEntry'){
+        $tmp[]= $this->attrs['objectClass'][$i];
+      }
+    }
+    $this->attrs['objectClass']= $tmp;
+
     @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
         $this->attributes, "Save");
     $ldap->cd($this->dn);