Merge pull request #11321 from owncloud/ldap-fix-memberof-detection

dn needs to be fetched to be able to detect memberOf support
This commit is contained in:
Lukas Reschke 2014-09-29 14:46:10 +02:00
commit 6b45cb5416
1 changed files with 4 additions and 2 deletions

View File

@ -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;