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);