From 51d6a25cf16170d12eb74c8124b696138c609e5e Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 3 Nov 2006 06:43:57 +0000 Subject: [PATCH] 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 --- plugins/personal/posix/class_posixAccount.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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']); } -- 2.30.2