dn needs to be fetched to be able to detect memberOf support
This commit is contained in:
parent
53f6d74938
commit
6041ae6224
|
@ -377,9 +377,11 @@ class Wizard extends LDAPUtility {
|
||||||
$limit = 400;
|
$limit = 400;
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
do {
|
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) {
|
foreach($result as $item) {
|
||||||
$groupNames[] = $item[0];
|
$groupNames[] = $item['cn'];
|
||||||
$groupEntries[] = $item;
|
$groupEntries[] = $item;
|
||||||
}
|
}
|
||||||
$offset += $limit;
|
$offset += $limit;
|
||||||
|
|
Loading…
Reference in New Issue