From f864b55323330db8ff7e6e66e6b9da6daf2e68ca Mon Sep 17 00:00:00 2001 From: Renaud Fortier Date: Thu, 26 Nov 2015 10:00:15 -0500 Subject: [PATCH] Remove of useless code --- apps/user_ldap/user_ldap.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 204995198b..0b4bdff967 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -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);