Remove of useless code
This commit is contained in:
parent
3c53a0da27
commit
f864b55323
1 changed files with 1 additions and 5 deletions
|
@ -176,12 +176,8 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn
|
|||
}
|
||||
|
||||
$dn = $user->getDN();
|
||||
$userFilter = 'objectclass=*';
|
||||
if ($this->access->connection->ldapUserFilter !== '') {
|
||||
$userFilter = $this->access->connection->ldapUserFilter;
|
||||
}
|
||||
//check if user really still exists by reading its entry
|
||||
if(!is_array($this->access->readAttribute($dn, '', $userFilter))) {
|
||||
if(!is_array($this->access->readAttribute($dn, '', $this->access->connection->ldapUserFilter))) {
|
||||
$lcr = $this->access->connection->getConnectionResource();
|
||||
if(is_null($lcr)) {
|
||||
throw new \Exception('No LDAP Connection to server ' . $this->access->connection->ldapHost);
|
||||
|
|
Loading…
Reference in a new issue