Skip to content

Commit 520190c

Browse files
committed
Ignore group details if displayname isn't found
1 parent a034ab2 commit 520190c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Group_LDAP.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,12 +1010,15 @@ public function getGroupDetails($gid) {
10101010

10111011
$dn = $this->access->groupname2dn($gid);
10121012
if ($dn === false) {
1013-
// FIXME: It seems local groups also end up going through here...
10141013
return null;
10151014
}
10161015

10171016
$attr = $this->access->getConnection()->ldapGroupDisplayName;
10181017
$displayname = $this->access->readAttribute($dn, $attr);
1018+
if (!\is_array($displayname)) {
1019+
// displayname attr not found
1020+
return null;
1021+
}
10191022

10201023
$details = [
10211024
'gid' => $gid,

0 commit comments

Comments
 (0)