LDAP: check for always available attribute on userExists, fixes oc-1440
This commit is contained in:
parent
c3cbb463e3
commit
c10010e410
1 changed files with 3 additions and 3 deletions
|
@ -127,9 +127,9 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
|
|||
return false;
|
||||
}
|
||||
|
||||
//if user really still exists, we will be able to read his cn
|
||||
$cn = $this->readAttribute($dn, 'cn');
|
||||
if(!$cn || empty($cn)) {
|
||||
//if user really still exists, we will be able to read his objectclass
|
||||
$objcs = $this->readAttribute($dn, 'objectclass');
|
||||
if(!$objcs || empty($objcs)) {
|
||||
$this->connection->writeToCache('userExists'.$uid, false);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue