summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/access.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index adfb11da673..c3a15c3ee45 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -721,7 +721,9 @@ class Access extends LDAPUtility implements user\IUserTools {
return $list;
} else {
$list = array_reduce($list, function($carry, $item) {
- $carry[] = $item[0];
+ $attribute = array_keys($item)[0];
+ $carry[] = $item[$attribute][0];
+ return $carry;
}, array());
return array_unique($list, SORT_LOCALE_STRING);
}