Merge pull request #8835 from nextcloud/fix/noid/ldap_existence_check
group existence check works without attribute (like with users)
This commit is contained in:
commit
f83aa58d1f
1 changed files with 2 additions and 1 deletions
|
@ -472,6 +472,7 @@ class Access extends LDAPUtility implements IUserTools {
|
|||
*
|
||||
* @param string[] $groupDNs
|
||||
* @return string[]
|
||||
* @throws ServerNotAvailableException
|
||||
*/
|
||||
public function groupsMatchFilter($groupDNs) {
|
||||
$validGroupDNs = [];
|
||||
|
@ -492,7 +493,7 @@ class Access extends LDAPUtility implements IUserTools {
|
|||
continue;
|
||||
}
|
||||
|
||||
$result = $this->readAttribute($dn, 'cn', $this->connection->ldapGroupFilter);
|
||||
$result = $this->readAttribute($dn, '', $this->connection->ldapGroupFilter);
|
||||
if(is_array($result)) {
|
||||
$this->connection->writeToCache($cacheKey, true);
|
||||
$validGroupDNs[] = $dn;
|
||||
|
|
Loading…
Reference in a new issue