/** * Find groups * * @access public * @param string $query * @return array */ public function find($query) { $this->query->execute($this->getBasDn(), $query, $this->getAttributes()); $groups = array(); if ($this->query->hasResult()) { $groups = $this->build(); } return $groups; }
/** * Find user * * @access public * @param string $query * @return LdapUserProvider */ public function find($query) { $this->query->execute($this->getBasDn(), $query, $this->getAttributes()); $user = null; if ($this->query->hasResult()) { $user = $this->build(); } return $user; }