Browse Source

Merge pull request #10775 from nextcloud/fix/10431/ldap-groups

Resolve all group memberships properly
pull/10789/head
blizzz 7 years ago
committed by GitHub
parent
commit
1a7516dd93
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/user_ldap/lib/Group_LDAP.php

2
apps/user_ldap/lib/Group_LDAP.php

@ -825,7 +825,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);

Loading…
Cancel
Save