existence check works without attribute (like with users)
cn is not necessarily given everywhere Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
fa886ef4eb
commit
cbf60f2e91
|
@ -472,6 +472,7 @@ class Access extends LDAPUtility implements IUserTools {
|
||||||
*
|
*
|
||||||
* @param string[] $groupDNs
|
* @param string[] $groupDNs
|
||||||
* @return string[]
|
* @return string[]
|
||||||
|
* @throws ServerNotAvailableException
|
||||||
*/
|
*/
|
||||||
public function groupsMatchFilter($groupDNs) {
|
public function groupsMatchFilter($groupDNs) {
|
||||||
$validGroupDNs = [];
|
$validGroupDNs = [];
|
||||||
|
@ -492,7 +493,7 @@ class Access extends LDAPUtility implements IUserTools {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->readAttribute($dn, 'cn', $this->connection->ldapGroupFilter);
|
$result = $this->readAttribute($dn, '', $this->connection->ldapGroupFilter);
|
||||||
if(is_array($result)) {
|
if(is_array($result)) {
|
||||||
$this->connection->writeToCache($cacheKey, true);
|
$this->connection->writeToCache($cacheKey, true);
|
||||||
$validGroupDNs[] = $dn;
|
$validGroupDNs[] = $dn;
|
||||||
|
|
Loading…
Reference in New Issue