Selaa lähdekoodia

fix inGroup check, thus make integration tests succeed

there is not such strange return mode. Having invalid user ids caused this
check to fail, and as side effect share limitation to groups to not work.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v17.0.0beta1
Arthur Schiwon 5 vuotta sitten
vanhempi
commit
1d48c0313c
No account linked to committer's email address
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0
    1
      apps/user_ldap/lib/Group_LDAP.php

+ 0
- 1
apps/user_ldap/lib/Group_LDAP.php Näytä tiedosto



//usually, LDAP attributes are said to be case insensitive. But there are exceptions of course. //usually, LDAP attributes are said to be case insensitive. But there are exceptions of course.
$members = $this->_groupMembers($groupDN); $members = $this->_groupMembers($groupDN);
$members = array_keys($members); // uids are returned as keys
if(!is_array($members) || count($members) === 0) { if(!is_array($members) || count($members) === 0) {
$this->access->connection->writeToCache($cacheKey, false); $this->access->connection->writeToCache($cacheKey, false);
return false; return false;

Loading…
Peruuta
Tallenna