Lines Matching refs:filter

208             $filter = $this->_makeFilter($this->getConf('userfilter'), $info);
210 $filter = "(ObjectClass=*)";
213 $sr = $this->_ldapsearch($this->con, $base, $filter, $this->getConf('userscope'));
216 … $this->_debug('LDAP search at: '.htmlspecialchars($base.' '.$filter), 0, __LINE__, __FILE__);
262 $filter = $this->_makeFilter($this->getConf('groupfilter'), $user_result);
263 …$sr = $this->_ldapsearch($this->con, $base, $filter, $this->getConf('groupscope'), array($this…
265 … $this->_debug('LDAP search at: '.htmlspecialchars($base.' '.$filter), 0, __LINE__, __FILE__);
478 * @param array $filter
481 public function getUserCount($filter = array()) { argument
485 if(!count($filter)) return count($this->users);
488 $this->_constructPattern($filter);
502 * @param array $filter array of field/pattern pairs
505 public function retrieveUsers($start = 0, $limit = 0, $filter = array()) { argument
514 $this->_constructPattern($filter);
536 * @param string $filter ldap search filter with placeholders
540 protected function _makeFilter($filter, $placeholders) { argument
541 preg_match_all("/%{([^}]+)/", $filter, $matches, PREG_PATTERN_ORDER);
551 $filter = str_replace('%{'.$match.'}', $value, $filter);
553 return $filter;
680 * @param array $filter
682 protected function _constructPattern($filter) { argument
684 foreach($filter as $item => $pattern) {
808 * @param string $filter
815 …protected function _ldapsearch($link_identifier, $base_dn, $filter, $scope = 'sub', $attributes = … argument
821 $link_identifier, $base_dn, $filter, $attributes,
826 $link_identifier, $base_dn, $filter, $attributes,
831 $link_identifier, $base_dn, $filter, $attributes,