fixed autoUID/GID

This commit is contained in:
Roland Gruber 2005-09-27 12:34:04 +00:00
parent 4baf291240
commit 197adebee1
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
??? 0.5.1
- fixed bugs:
-> automatic UID/GID assignment did not fully work
28.09.2005 0.5.0
- Samba 2/3: added display name in account pages
- fixed bugs:

View File

@ -1562,7 +1562,7 @@ class posixAccount extends baseModule {
$uids = array();
if(is_array($dn_uids)) {
foreach ($dn_uids as $uid) {
if (($uid[0] < $maxID) && ($uid[0] > $minID)) $uids[] = $uid[0]; // ignore UIDs > maxID and UIDs < minID
if (($uid[0] <= $maxID) && ($uid[0] >= $minID)) $uids[] = $uid[0]; // ignore UIDs > maxID and UIDs < minID
}
sort ($uids, SORT_NUMERIC);
}

View File

@ -857,7 +857,7 @@ class posixGroup extends baseModule {
$gids = array();
if(is_array($dn_gids)) {
foreach ($dn_gids as $gid) {
if (($gid[0] < $maxID) && ($gid[0] > $minID)) $gids[] = $gid[0]; // ignore GIDs > maxID and GIDs < minID
if (($gid[0] <= $maxID) && ($gid[0] >= $minID)) $gids[] = $gid[0]; // ignore GIDs > maxID and GIDs < minID
}
sort ($gids, SORT_NUMERIC);
}