Skip to content

Commit

Permalink
hotfix for empty dns
Browse files Browse the repository at this point in the history
  • Loading branch information
tofuSCHNITZEL committed Mar 22, 2019
1 parent cf2c908 commit 410b7ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/user_ldap/lib/Group_LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,10 @@ private function getGroupsByMember($dn, &$seen = null) {
}
return $this->getGroupsByMember($dn, $seen);
};

if (empty($dn))
$dn = "";

$allGroups = $this->walkNestedGroups($dn, $fetcher, $groups);
}
$visibleGroups = $this->access->groupsMatchFilter(array_keys($allGroups));
Expand Down

0 comments on commit 410b7ec

Please sign in to comment.