Skip to content

Commit dee3852

Browse files
committed
hotfix for empty dns
Signed-off-by: Tobias Perschon <tobias@perschon.at>
1 parent cf2c908 commit dee3852

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/user_ldap/lib/Group_LDAP.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,10 @@ private function getGroupsByMember($dn, &$seen = null) {
825825
}
826826
return $this->getGroupsByMember($dn, $seen);
827827
};
828+
829+
if (empty($dn))
830+
$dn = "";
831+
828832
$allGroups = $this->walkNestedGroups($dn, $fetcher, $groups);
829833
}
830834
$visibleGroups = $this->access->groupsMatchFilter(array_keys($allGroups));

0 commit comments

Comments
 (0)