summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60e570e)
raw | patch | inline | side by side (parent: 60e570e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 12 Dec 2006 08:26:15 +0000 (08:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 12 Dec 2006 08:26:15 +0000 (08:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5359 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupGeneric.inc | patch | blob | history | |
plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index dd0606557675e120b721d2a893cd856f8c822f85..c0fb36eb343b6ba14af8e60f9713f40713cf4b0a 100644 (file)
}
/* 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 589da2198b61001da6d64b07c3a5022495e83cd7..7aa75d779cc164bfdebca27a42f440a9a98d9ba0 100644 (file)
if (isset($tmp[1])){
$hwm= $tmp[1];
} else {
- $hwm= 65535;
+ $hwm= pow(2,32);
}
/* Find out next free id near to UID_BASE */