summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-01-29 10:57:31 +0100
committerGitHub <noreply@github.com>2021-01-29 10:57:31 +0100
commit6a3321cefeacb977e2832e26e28d72a6223d6b48 (patch)
tree49123980281bcdd9967908ca122542124d2a2632 /apps/user_ldap/lib
parent395826b81afd148bdd45588892f6614225f38d14 (diff)
parent02b703193a9575b3ee742d9b1b851924bc617319 (diff)
downloadnextcloud-server-6a3321cefeacb977e2832e26e28d72a6223d6b48.tar.gz
nextcloud-server-6a3321cefeacb977e2832e26e28d72a6223d6b48.zip
Merge pull request #25101 from nextcloud/fix/noid/ldap-known-groups
LDAP: make actually use of batch read known groups
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/Access.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 0ce727f8bcb..d11ca98ece9 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -945,7 +945,7 @@ class Access extends LDAPUtility {
array_walk($groupRecords, function ($record) use ($idsByDn) {
$newlyMapped = false;
- $gid = $uidsByDn[$record['dn'][0]] ?? null;
+ $gid = $idsByDn[$record['dn'][0]] ?? null;
if ($gid === null) {
$gid = $this->dn2ocname($record['dn'][0], null, false, $newlyMapped, $record);
}