From: hickert Date: Fri, 3 Nov 2006 06:43:57 +0000 (+0000) Subject: Set uid/gid number beginning to 1000 if unset... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=51d6a25cf16170d12eb74c8124b696138c609e5e;p=gosa.git Set uid/gid number beginning to 1000 if unset... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5001 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 502a54663..2cd2d147b 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -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']); }