summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/user_ldap.php
diff options
context:
space:
mode:
authorRenaud Fortier <Renaud.Fortier@fsaa.ulaval.ca>2015-11-26 10:00:15 -0500
committerRenaud Fortier <Renaud.Fortier@fsaa.ulaval.ca>2015-11-26 10:00:15 -0500
commitf864b55323330db8ff7e6e66e6b9da6daf2e68ca (patch)
treed2c1e3555bab6935c630e63de14970c271607272 /apps/user_ldap/user_ldap.php
parent3c53a0da279ec167c0a8e64dc8c92bc700daf770 (diff)
downloadnextcloud-server-f864b55323330db8ff7e6e66e6b9da6daf2e68ca.tar.gz
nextcloud-server-f864b55323330db8ff7e6e66e6b9da6daf2e68ca.zip
Remove of useless code
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rw-r--r--apps/user_ldap/user_ldap.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index 204995198bd..0b4bdff9678 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);