We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e59c7 commit 90493adCopy full SHA for 90493ad
resources/lib/UnityLDAP.php
@@ -337,7 +337,14 @@ public function getAllUID2PIGIDs()
337
foreach ($this->getAllPIGroupsAttributes(["cn", "memberuid"]) as $array) {
338
$gid = $array["cn"][0];
339
foreach ($array["memberuid"] as $uid) {
340
- array_push($uid2pigids[$uid], $gid);
+ if (array_key_exists($uid, $uid2pigids)) {
341
+ array_push($uid2pigids[$uid], $gid);
342
+ } else {
343
+ UnitySite::errorLog(
344
+ "warning",
345
+ "user '$uid' is a member of a PI group but is not a Unity user!"
346
+ );
347
+ }
348
}
349
350
return $uid2pigids;
0 commit comments