Lines Matching full:info
180 * Return user info [required auth function]
182 * Returns info about the given user needs to contain
221 //get info for given user
222 $result = $adldap->user()->info($this->getUserName($user), $fields);
227 //general user info
228 $info = [];
229 $info['name'] = $result[0]['displayname'][0];
230 $info['mail'] = $result[0]['mail'][0];
231 $info['uid'] = $result[0]['samaccountname'][0];
232 $info['dn'] = $result[0]['dn'];
234 $info['lastpwd'] = $result[0]['pwdlastset'][0] / 10_000_000 - 11_644_473_600;
236 … $info['expires'] = !($result[0]['useraccountcontrol'][0] & 0x10000); //ADS_UF_DONT_EXPIRE_PASSWD
241 $info[$field] = $result[0][strtolower($field)][0];
246 …$info['grps'] = $adldap->user()->groups($this->getUserName($user), (bool) $this->opts['recursive_g…
248 if (is_array($info['grps'])) {
249 foreach ($info['grps'] as $ndx => $group) {
250 $info['grps'][$ndx] = $this->cleanGroup($group);
253 $info['grps'] = [];
257 if (!in_array($conf['defaultgroup'], $info['grps'])) {
258 $info['grps'][] = $conf['defaultgroup'];
263 if ($domain && !in_array("domain-$domain", $info['grps'])) {
264 $info['grps'][] = $this->cleanGroup("domain-$domain");
268 if ($info['expires'] && $this->conf['expirywarn']) {
272 $info['expiresat'] = $expiry['expiryts'];
273 $info['expiresin'] = round(($info['expiresat'] - time()) / (24 * 60 * 60));
278 ($info['expiresin'] <= $this->conf['expirywarn']) &&
281 $msg = sprintf($this->getLang('authpwdexpire'), $info['expiresin']);
295 return $info;
489 foreach ($this->users as $user => &$info) {
493 if ($info === false) {
494 $info = $this->getUserData($user);
496 if ($this->filter($user, $info)) {
497 $this->grpsusers[$this->filterToString($filter)][$user] = $info;
520 //get info for given user
535 foreach ($this->users as $user => &$info) {
539 if ($info === false) {
540 $info = $this->getUserData($user);
542 $result[$user] = $info;
563 foreach ($this->grpsusers[$this->filterToString($filter)] as $user => &$info) {
567 $result[$user] = $info;
774 * @param array $info
777 protected function filter($user, $info) argument
783 if (!count(preg_grep($pattern, $info['grps']))) return false;
784 } elseif (!preg_match($pattern, $info[$item])) {