diff --git a/lib/Handlers/GroupsLoader.php b/lib/Handlers/GroupsLoader.php old mode 100644 new mode 100755 index d4ad427..4143217 --- a/lib/Handlers/GroupsLoader.php +++ b/lib/Handlers/GroupsLoader.php @@ -38,6 +38,10 @@ public function getUserGroups(Manager $ldap, array $userData) // Merge the two and return foreach($memberOf as $dn => $name) { + if(!isset($allGroups[$dn])) { + continue; + } + $memberOf[$dn] = $allGroups[$dn]; }