Skip to content

Commit 25eadb4

Browse files
authored
treat IDnumbers 0-99 as in-use (#270)
1 parent 1e98215 commit 25eadb4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/lib/UnityLDAP.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ public function getNextOrgGIDNumber($UnitySQL)
163163

164164
private function IDNumInUse($id)
165165
{
166-
// id reserved for debian packages
167-
if (($id >= 100 && $id <= 999) || ($id >= 60000 && $id <= 64999)) {
166+
// 0-99 are probably going to be used for local system accounts instead of LDAP accounts
167+
// 100-999, 60000-64999 are reserved for debian packages
168+
if (($id <= 999) || ($id >= 60000 && $id <= 64999)) {
168169
return true;
169170
}
170171
$users = $this->userOU->getChildrenArray([], true);

0 commit comments

Comments
 (0)