Merge pull request #10783 from nextcloud/backport/10775/stable13

[stable13] Resolve all group memberships properly
This commit is contained in:
Morris Jobke 2018-08-22 10:51:02 +02:00 committed by GitHub
commit 5bc7af2510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
if($isMemberUid) {
//we got uids, need to get their DNs to 'translate' them to user names
$filter = $this->access->combineFilterWithAnd(array(
str_replace('%uid', $member, $this->access->connection->ldapLoginFilter),
str_replace('%uid', trim($member), $this->access->connection->ldapLoginFilter),
$this->access->getFilterPartForUserSearch($search)
));
$ldap_users = $this->access->fetchListOfUsers($filter, $attrs, 1);