Skip to content

Commit 0fb9b2e

Browse files
committed
check GID in use when looking for UIDs
1 parent 3e2996a commit 0fb9b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/UnityLDAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function getNextUIDNumber($UnitySQL)
120120
$max_uid = $UnitySQL->getSiteVar('MAX_UID');
121121
$new_uid = $max_uid + 1;
122122

123-
while ($this->UIDNumInUse($new_uid)) {
123+
while ($this->UIDNumInUse($new_uid) || $this->GIDNumInUse($new_uid)) {
124124
$new_uid++;
125125
}
126126

0 commit comments

Comments
 (0)