Fix "searchUsers" usage in Group_LDAP.php

`Access::searchUsers` expects an array as the second parameter, `Group_LDAP.php` called the method with a simple string, resulting in an exception and preventing folders shared with dynamic groups from working. This trivial change fixes the usage in Group_LDAP.

Fixes #25163

Signed-off-by: Henning Hoefer <hho@users.noreply.github.com>
This commit is contained in:
Henning Hoefer 2021-01-25 14:11:17 +01:00
parent 2f074d73e3
commit dfd07cc4d1
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class Group_LDAP extends BackendUtility implements GroupInterface, IGroupLDAP, I
$pos = strpos($memberURLs[0], '(');
if ($pos !== false) {
$memberUrlFilter = substr($memberURLs[0], $pos);
$foundMembers = $this->access->searchUsers($memberUrlFilter, 'dn');
$foundMembers = $this->access->searchUsers($memberUrlFilter, ['dn']);
$dynamicMembers = [];
foreach ($foundMembers as $value) {
$dynamicMembers[$value['dn'][0]] = 1;