Lines Matching defs:info

106             $info = $this->fetchUserData($user, true);
107 if (empty($info['dn'])) {
110 $dn = $info['dn'];
125 * Return user info
127 * Returns info about the given user needs to contain
186 $info = array();
187 $info['user'] = $user;
188 $this->debug('LDAP user to find: ' . hsc($info['user']), 0, __LINE__, __FILE__);
190 $info['server'] = $this->getConf('server');
191 $this->debug('LDAP Server: ' . hsc($info['server']), 0, __LINE__, __FILE__);
193 //get info for given user
194 $base = $this->makeFilter($this->getConf('usertree'), $info);
196 $filter = $this->makeFilter($this->getConf('userfilter'), $info);
236 // general user info
237 $info['dn'] = $user_result['dn'];
238 $info['gid'] = $user_result['gidnumber'][0];
239 $info['mail'] = $user_result['mail'][0];
240 $info['name'] = $user_result['cn'][0];
241 $info['grps'] = array();
254 $info[$localkey][] = $match[1];
256 $info[$localkey] = $match[1];
261 $info[$localkey] = $user_result[$key][0];
265 $user_result = array_merge($info, $user_result);
299 $info['grps'][] = $group;
305 if (!$info['grps'] or !in_array($conf['defaultgroup'], $info['grps'])) {
306 $info['grps'][] = $conf['defaultgroup'];
308 return $info;
328 $info = $this->getUserData($user, true);
329 if (empty($info['dn'])) {
333 $dn = $info['dn'];
427 foreach ($this->users as $user => &$info) {
431 if ($info === false) {
432 $info = $this->getUserData($user);
434 if ($this->filter($user, $info)) {
435 $result[$user] = $info;
471 * return true if $user + $info match $filter criteria, false otherwise
474 * @param array $info the user's userinfo array
479 protected function filter($user, $info)
485 if (!count(preg_grep($pattern, $info['grps']))) return false;
487 if (!preg_match($pattern, $info[$item])) return false;