diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-08-22 10:51:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 10:51:02 +0200 |
commit | 5bc7af25106de5fce6d9fa9ed22571b4673eb91e (patch) | |
tree | 55d3bde77f991ff2b0580051f449b2e07ab8b770 /apps/user_ldap/lib | |
parent | a4e989bb75adf7f474d3228850589601650f51bb (diff) | |
parent | 4f6f3b261a2545c15189fc69aed585a16bd928b1 (diff) | |
download | nextcloud-server-5bc7af25106de5fce6d9fa9ed22571b4673eb91e.tar.gz nextcloud-server-5bc7af25106de5fce6d9fa9ed22571b4673eb91e.zip |
Merge pull request #10783 from nextcloud/backport/10775/stable13
[stable13] Resolve all group memberships properly
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/Group_LDAP.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Group_LDAP.php b/apps/user_ldap/lib/Group_LDAP.php index 0f4bb2d8b6a..3a46d3c7b79 100644 --- a/apps/user_ldap/lib/Group_LDAP.php +++ b/apps/user_ldap/lib/Group_LDAP.php @@ -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); |