Remove of useless code

This commit is contained in:
Renaud Fortier 2015-11-26 10:00:15 -05:00
parent 3c53a0da27
commit f864b55323

View file

@ -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);