Lines Matching full:info
108 $info = $this->fetchUserData($user, true);
109 if (empty($info['dn'])) {
112 $dn = $info['dn'];
127 * Return user info
129 * Returns info about the given user needs to contain
189 $info = [];
190 $info['user'] = $user;
191 $this->debug('LDAP user to find: ' . hsc($info['user']), 0, __LINE__, __FILE__);
193 $info['server'] = $this->getConf('server');
194 $this->debug('LDAP Server: ' . hsc($info['server']), 0, __LINE__, __FILE__);
196 //get info for given user
197 $base = $this->makeFilter($this->getConf('usertree'), $info);
199 $filter = $this->makeFilter($this->getConf('userfilter'), $info);
242 // general user info
243 $info['dn'] = $user_result['dn'];
244 $info['gid'] = $user_result['gidnumber'][0] ?? null;
245 $info['mail'] = $user_result['mail'][0] ?? null;
246 $info['name'] = $user_result['cn'][0];
247 $info['grps'] = [];
260 $info[$localkey][] = $match[1];
262 $info[$localkey] = $match[1];
267 $info[$localkey] = $user_result[$key][0];
271 $user_result = array_merge($info, $user_result);
305 $info['grps'][] = $group;
311 if (!$info['grps'] || !in_array($conf['defaultgroup'], $info['grps'])) {
312 $info['grps'][] = $conf['defaultgroup'];
314 return $info;
334 $info = $this->getUserData($user, true);
335 if (empty($info['dn'])) {
339 $dn = $info['dn'];
437 foreach ($this->users as $user => &$info) {
441 if ($info === false) {
442 $info = $this->getUserData($user);
444 if ($this->filter($user, $info)) {
445 $result[$user] = $info;
481 * return true if $user + $info match $filter criteria, false otherwise
484 * @param array $info the user's userinfo array
489 protected function filter($user, $info) argument
495 if (!count(preg_grep($pattern, $info['grps']))) return false;
496 } elseif (!preg_match($pattern, $info[$item])) {