Lines Matching defs:match
105 public function getGroups($match = null, $filtermethod = self::FILTER_EQUAL)
112 if ($match !== null) {
115 $match = ltrim($match, '^');
116 $match = rtrim($match, '$');
117 $match = stripslashes($match);
119 $filter->add(Filters::$filtermethod('cn', $match));
148 * @param array $match
152 public function getFilteredUsers($match, $filtermethod = self::FILTER_EQUAL)
157 if (isset($match['user'])) {
158 $filter->add(Filters::$filtermethod('sAMAccountName', $this->simpleUser($match['user'])));
160 if (isset($match['name'])) {
161 $filter->add(Filters::$filtermethod('displayName', $match['name']));
163 if (isset($match['mail'])) {
164 $filter->add(Filters::$filtermethod('mail', $match['mail']));
166 if (isset($match['grps'])) {
167 // memberOf can not be checked with a substring match, so we need to get the right groups first
168 $groups = $this->getGroups($match['grps'], $filtermethod);
266 * Removes the account suffix from the given user. Should match the SAMAccountName