From: hickert Date: Tue, 12 Dec 2006 08:26:15 +0000 (+0000) Subject: Added 32 bit ids X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ded7a24fa6e9b843547b62d49d840c746d44ca1b;p=gosa.git Added 32 bit ids git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5359 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index dd0606557..c0fb36eb3 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -819,14 +819,14 @@ class group extends plugin } /* Find out next free id near to UID_BASE */ - for ($id= $this->config->current['UIDBASE']; $id++; $id<65000){ + for ($id= $this->config->current['UIDBASE']; $id++; $id < pow(2,32)){ if (!in_array($id, $ids)){ return ($id); } } - /* Should not happen */ - if ($id == 65000){ + /* Check if id reached maximum */ + if ($id >= pow(2,32)){ print_red(_("Too many users, can't allocate a free ID!")); exit; } diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 589da2198..7aa75d779 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -1125,7 +1125,7 @@ class posixAccount extends plugin if (isset($tmp[1])){ $hwm= $tmp[1]; } else { - $hwm= 65535; + $hwm= pow(2,32); } /* Find out next free id near to UID_BASE */