fixed autoUID/GID
This commit is contained in:
parent
4baf291240
commit
197adebee1
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue