From a3566f6e86b277f3acaa75a8175f57730762a86e Mon Sep 17 00:00:00 2001 From: Simon Leary Date: Sun, 6 Jul 2025 19:09:15 -0400 Subject: [PATCH] treat IDnumbers 0-99 as in-use --- resources/lib/UnityLDAP.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/UnityLDAP.php b/resources/lib/UnityLDAP.php index b63f75c9..37a938e9 100644 --- a/resources/lib/UnityLDAP.php +++ b/resources/lib/UnityLDAP.php @@ -163,8 +163,9 @@ public function getNextOrgGIDNumber($UnitySQL) private function IDNumInUse($id) { - // id reserved for debian packages - if (($id >= 100 && $id <= 999) || ($id >= 60000 && $id <= 64999)) { + // 0-99 are probably going to be used for local system accounts instead of LDAP accounts + // 100-999, 60000-64999 are reserved for debian packages + if (($id <= 999) || ($id >= 60000 && $id <= 64999)) { return true; } $users = $this->userOU->getChildrenArray([], true);