From 5ddacaed7f5ba5a238f0373f813ab0bb2cdd6e9b Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 26 Sep 2014 15:36:49 +0200 Subject: [PATCH] dn needs to be fetched to be able to detect memberOf support --- apps/user_ldap/lib/wizard.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php index fdf65a3d0a6..b08516a4d77 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; -- 2.39.5