Code

Set uid/gid number beginning to 1000 if unset...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Nov 2006 06:43:57 +0000 (06:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Nov 2006 06:43:57 +0000 (06:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5001 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 502a5466370ca6f48708ffcc1644f404fde06dde..2cd2d147b1c882980ce0a4440c24afc1eab3f9e5 100644 (file)
@@ -520,9 +520,7 @@ class posixAccount extends plugin
       }
     } else {
       if ($_SESSION['js']){
-#FIXME: whats up here. remove acl?
-        if($this->acl != "#none#")
-          $smarty->assign("forceMode", "disabled");
+        $smarty->assign("forceMode", "disabled");
       }
       $smarty->assign("force_ids", "");
     }
@@ -1115,9 +1113,10 @@ class posixAccount extends plugin
     $ids[]=  65534;
 
     /* get the ranges */
-    if (preg_match('/posixAccount/', $oc)) {
+    $tmp = array('0'=> 1000) 
+    if (preg_match('/posixAccount/', $oc) && isset($this->config->current['UIDBASE'])) {
       $tmp= split('-',$this->config->current['UIDBASE']);
-    } else {
+    } elseif(isset($this->config->current['UIDBASE'])) {
       $tmp= split('-',$this->config->current['GIDBASE']);
     }