Skip to content

Commit 875688c

Browse files
committed
check for uid conflicts outside users OU
1 parent 4ca2943 commit 875688c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/lib/UnityLDAP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ private function IDNumInUse($id)
167167
if (($id >= 100 && $id <= 999) || ($id >= 60000 && $id <= 64999)) {
168168
return true;
169169
}
170-
$users = $this->userOU->getChildrenArray(true);
170+
$user = $this->getAllUsers();
171171
foreach ($users as $user) {
172-
if ($user["uidnumber"][0] == $id) {
172+
if ($user->getAttribute("uidnumber")[0] == $id) {
173173
return true;
174174
}
175175
}

0 commit comments

Comments
 (0)