Lines Matching defs: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
188 $info = [];
189 $info['user'] = $user;
190 $this->debug('LDAP user to find: ' . hsc($info['user']), 0, __LINE__, __FILE__);
192 $info['server'] = $this->getConf('server');
193 $this->debug('LDAP Server: ' . hsc($info['server']), 0, __LINE__, __FILE__);
195 //get info for given user
196 $base = $this->makeFilter($this->getConf('usertree'), $info);
198 $filter = $this->makeFilter($this->getConf('userfilter'), $info);
241 // general user info
242 $info['dn'] = $user_result['dn'];
243 $info['gid'] = $user_result['gidnumber'][0] ?? null;
244 $info['mail'] = $user_result['mail'][0];
245 $info['name'] = $user_result['cn'][0];
246 $info['grps'] = [];
259 $info[$localkey][] = $match[1];
261 $info[$localkey] = $match[1];
266 $info[$localkey] = $user_result[$key][0];
270 $user_result = array_merge($info, $user_result);
304 $info['grps'][] = $group;
310 if (!$info['grps'] || !in_array($conf['defaultgroup'], $info['grps'])) {
311 $info['grps'][] = $conf['defaultgroup'];
313 return $info;
333 $info = $this->getUserData($user, true);
334 if (empty($info['dn'])) {
338 $dn = $info['dn'];
432 foreach ($this->users as $user => &$info) {
436 if ($info === false) {
437 $info = $this->getUserData($user);
439 if ($this->filter($user, $info)) {
440 $result[$user] = $info;
476 * return true if $user + $info match $filter criteria, false otherwise
479 * @param array $info the user's userinfo array
484 protected function filter($user, $info)
490 if (!count(preg_grep($pattern, $info['grps']))) return false;
491 } elseif (!preg_match($pattern, $info[$item])) {