Lines Matching refs:user

148      * @param string $user
152 public function checkPass($user, $pass) argument
155 $_SERVER['REMOTE_USER'] == $user &&
159 $adldap = $this->initAdLdap($this->getUserDomain($user));
163 return $adldap->authenticate($this->getUserName($user), $pass);
191 * @param string $user
195 public function getUserData($user, $requireGroups = true) argument
200 $adldap = $this->initAdLdap($this->getUserDomain($user));
203 if ($user == '') return array();
213 $result = $adldap->user()->info($this->getUserName($user), $fields);
237 …$info['grps'] = $adldap->user()->groups($this->getUserName($user), (bool) $this->opts['recursive_g…
251 $domain = $this->getUserDomain($user);
259 $expiry = $adldap->user()->passwordExpiry($user);
265 if (($_SERVER['REMOTE_USER'] == $user) &&
310 * @param string $user
313 public function cleanUser($user) argument
318 list($dom, $user) = explode('\\', $user, 2);
319 if (!$user) $user = $dom;
321 list($user, $dom) = explode('@', $user, 2);
326 $user = \dokuwiki\Utf8\PhpString::strtolower(trim($user));
334 if ($domain) $user = "$user@$domain";
335 return $user;
392 $result = $adldap->user()->all();
395 $result = $adldap->user()->all(false, $searchString);
473 foreach ($this->users as $user => &$info) {
478 $info = $this->getUserData($user);
480 if ($this->filter($user, $info)) {
481 $this->grpsusers[$this->filterToString($filter)][$user] = $info;
505 $result = $adldap->user()->all(false, $this->constructSearchString($filter));
519 foreach ($this->users as $user => &$info) {
524 $info = $this->getUserData($user);
526 $result[$user] = $info;
546 foreach ($this->grpsusers[$this->filterToString($filter)] as $user => &$info) {
550 $result[$user] = $info;
560 * @param string $user nick of the user to be changed
564 public function modifyUser($user, $changes) argument
567 $adldap = $this->initAdLdap($this->getUserDomain($user));
576 $return = $adldap->user()->password($this->getUserName($user), $changes['pass']);
598 $return = $return & $adldap->user()->modify($this->getUserName($user), $adchanges);
645 * @param string $user
648 public function getUserDomain($user) argument
650 list(, $domain) = explode('@', $user, 2);
659 * @param string $user
662 public function getUserName($user) argument
665 list($user) = explode('@', $user, 2);
667 return $user;
756 * @param string $user
760 protected function filter($user, $info) argument
764 if (!preg_match($pattern, $user)) return false;