Skip to content
Snippets Groups Projects
Commit 6041ae62 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

dn needs to be fetched to be able to detect memberOf support

parent 53f6d749
Branches
No related tags found
No related merge requests found
......@@ -377,9 +377,11 @@ class Wizard extends LDAPUtility {
$limit = 400;
$offset = 0;
do {
$result = $this->access->searchGroups($filter, array('cn'), $limit, $offset);
// we need to request dn additionally here, otherwise memberOf
// detection will fail later
$result = $this->access->searchGroups($filter, array('cn', 'dn'), $limit, $offset);
foreach($result as $item) {
$groupNames[] = $item[0];
$groupNames[] = $item['cn'];
$groupEntries[] = $item;
}
$offset += $limit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment