]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove of useless code
authorRenaud Fortier <Renaud.Fortier@fsaa.ulaval.ca>
Thu, 26 Nov 2015 15:00:15 +0000 (10:00 -0500)
committerRenaud Fortier <Renaud.Fortier@fsaa.ulaval.ca>
Thu, 26 Nov 2015 15:00:15 +0000 (10:00 -0500)
apps/user_ldap/user_ldap.php

index 204995198bd98dfa5ed2fcece38ef15de1ff0dcd..0b4bdff96785929cc1c34c2beda5063afb8a9c10 100644 (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);