public function search($server, $filter, $attributes = [])
    {
        return ldap_search($this->connect, $server['dn'], $filter, $attributes);
    }
public function search($server, $filter, $attributes = [])
    {
        return ldap_search($this->connect, $server['dn'], $filter, $attributes);
    }
public function search ( $ server , $ filter , $ attributes = [ ] ) { return ldap_search ( $ this -> connect , $ server [ 'dn' ] , $ filter , $ attributes ) ; }
This method search something in LDAP directory using a filter.

@param server An array containing LDAP informations as host, port or dn
@param filter Simple or advanced ldap filter
@param attributes An array of the required attributes, e.g. array("email", "sn", "cn")

@return Returns a search result identifier or FALSE on error
This method search something in LDAP directory using a filter .