diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-08-21 10:57:50 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-08-21 17:08:22 +0200 |
commit | 4f6f3b261a2545c15189fc69aed585a16bd928b1 (patch) | |
tree | b8b85aa02dee8f71ead6587866e67c3adc159d9e /apps | |
parent | d3ab244b4068cbaa1919c5b7b686662a140803c5 (diff) | |
download | nextcloud-server-4f6f3b261a2545c15189fc69aed585a16bd928b1.tar.gz nextcloud-server-4f6f3b261a2545c15189fc69aed585a16bd928b1.zip |
Resolve all group memberships properly
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-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); |