public function buildLdapQuery() { $lqb = new LdapQueryBuilder($this->ldap); if (!empty($this->attributes)) { $lqb->select($this->attributes); } return $lqb->from($this->schema); }