summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-03-15 15:47:44 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-03-16 10:26:29 +0100
commit588ee6af063cada71a4f4edb80940081af7ead54 (patch)
tree5b14abdda971848b41bdb1c2a0be8f666387d77e
parent161a0f29d9a261a5f70cc51afa2659bf2a1b87a6 (diff)
downloadnextcloud-server-588ee6af063cada71a4f4edb80940081af7ead54.tar.gz
nextcloud-server-588ee6af063cada71a4f4edb80940081af7ead54.zip
existence check works without attribute (like with users)
cn is not necessarily given everywhere Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/Access.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 54467857793..f2fc43ed9b8 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -473,6 +473,7 @@ class Access extends LDAPUtility implements IUserTools {
*
* @param string[] $groupDNs
* @return string[]
+ * @throws ServerNotAvailableException
*/
public function groupsMatchFilter($groupDNs) {
$validGroupDNs = [];
@@ -493,7 +494,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;