We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1916a2 commit 01c80f8Copy full SHA for 01c80f8
resources/lib/UnityLDAP.php
@@ -91,7 +91,8 @@ public function getNextUIDGIDNumber($uid)
91
$IDNumsInUse = array_merge($this->getAllUIDNumbersInUse(), $this->getAllGIDNumbersInUse());
92
$start = $this->offset_UIDGID;
93
$customIDMappings = $this->getCustomIDMappings();
94
- if (array_key_exists($uid, $customIDMappings)) {
+ $customMappedID = $customIDMappings[$uid] ?? null;
95
+ if (!is_null($customMappedID) && !in_array($customMappedID, $IDNumsInUse)) {
96
return $customMappedID;
97
}
98
if (!is_null($customMappedID) && in_array($customMappedID, $IDNumsInUse)) {
0 commit comments