summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-09-26 15:36:49 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-09-26 15:36:49 +0200
commit6041ae6224125192ba4b75b09b788aa234f5f30a (patch)
tree8239d0487e7bda3809bb5f8f5f882dd317226b34 /apps/user_ldap/lib
parent53f6d74938647de6921da47d28bd06b30a708cc5 (diff)
downloadnextcloud-server-6041ae6224125192ba4b75b09b788aa234f5f30a.tar.gz
nextcloud-server-6041ae6224125192ba4b75b09b788aa234f5f30a.zip
dn needs to be fetched to be able to detect memberOf support
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/wizard.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 7f0d32ead68..e2a85ea5eb9 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -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;