}
$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);