summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/group_ldap.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-06-25 12:41:17 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-06-26 16:42:11 +0200
commit8625a8cf23f1583bd84778d46383f46e86469955 (patch)
treef8e6a8f8afac5ab1a13fbd7dfe98ed27148275db /apps/user_ldap/group_ldap.php
parent58439c337c2e242c199f153d0529e0b0b482f03a (diff)
downloadnextcloud-server-8625a8cf23f1583bd84778d46383f46e86469955.tar.gz
nextcloud-server-8625a8cf23f1583bd84778d46383f46e86469955.zip
ensure groups match filter when using memberOf to read users group, refs #17119
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r--apps/user_ldap/group_ldap.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index 0395a4a80e3..a7a90c75832 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -378,9 +378,11 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
&& intval($this->access->connection->useMemberOfToDetectMembership) === 1
) {
$groupDNs = $this->access->readAttribute($userDN, 'memberOf');
+
if (is_array($groupDNs)) {
+ $groupDNs = $this->access->groupsMatchFilter($groupDNs);
foreach ($groupDNs as $dn) {
- $groups[] = $this->access->dn2groupname($dn);;
+ $groups[] = $this->access->dn2groupname($dn);
}
}
if($primaryGroup !== false) {