Skip to content

Commit 5bc7af2

Browse files
authored
Merge pull request #10783 from nextcloud/backport/10775/stable13
[stable13] Resolve all group memberships properly
2 parents a4e989b + 4f6f3b2 commit 5bc7af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/user_ldap/lib/Group_LDAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0) {
828828
if($isMemberUid) {
829829
//we got uids, need to get their DNs to 'translate' them to user names
830830
$filter = $this->access->combineFilterWithAnd(array(
831-
str_replace('%uid', $member, $this->access->connection->ldapLoginFilter),
831+
str_replace('%uid', trim($member), $this->access->connection->ldapLoginFilter),
832832
$this->access->getFilterPartForUserSearch($search)
833833
));
834834
$ldap_users = $this->access->fetchListOfUsers($filter, $attrs, 1);

0 commit comments

Comments
 (0)