Lines Matching refs:this

22             $this->success = false;
26 $this->cando['getUsers'] = true;
27 $this->cando['getUserCount'] = true;
28 $this->cando['getGroups'] = true;
45 $c = $this->connect();
48 "ou={$this->getConf('user_ou')},{$this->getConf('base_dn')}",
49 "({$this->getConf('userkey')}=$user)",
50 Array($this->getConf('username'), $this->getConf('usergid'), $this->getConf('usermail'))
56 'name' => $e[0][$this->getConf('username')][0],
57 'mail' => $e[0][$this->getConf('usermail')][0],
62 $gid = $e[0][$this->getConf('usergid')][0];
66 "ou={$this->getConf('group_ou')},{$this->getConf('base_dn')}",
67 "({$this->getConf('groupkey')}=*)",
68 … Array($this->getConf('groupkey'), $this->getConf('groupgid'), $this->getConf('groupuids'))
73 $cn = $e[$i][$this->getConf('groupkey')][0];
74 $gn = $e[$i][$this->getConf('groupgid')]['0'];
78 else if(array_key_exists($this->getConf('groupuids'), $e[$i])) {
79 for($j = 0; $j < $e[$i][$this->getConf('groupuids')]['count']; $j++) {
80 if($e[$i][$this->getConf('groupuids')][$j] == $user)
93 $c = ldap_connect($this->getConf('server'), $this->getConf('port'));
101 $c = $this->connect();
104 "ou={$this->getConf('user_ou')},{$this->getConf('base_dn')}",
105 "({$this->getConf('userkey')}=*)",
106 Array($this->getConf('usergid'))
117 $this->constructPattern($filter);
119 $c = $this->connect();
122 "ou={$this->getConf('user_ou')},{$this->getConf('base_dn')}",
123 "({$this->getConf('userkey')}=*)",
124 …Array($this->getConf('userkey'), $this->getConf('username'), $this->getConf('usergid'), $this->get…
131 $users[$e[$i][$this->getConf('userkey')][0]] = Array(
132 'name' => $e[$i][$this->getConf('username')][0],
133 'mail' => $e[$i][$this->getConf('usermail')][0],
135 'gid' => $e[$i][$this->getConf('usergid')][0]
140 "ou={$this->getConf('group_ou')},{$this->getConf('base_dn')}",
141 "({$this->getConf('groupkey')}=*)",
142 … Array($this->getConf('groupkey'), $this->getConf('groupgid'), $this->getConf('groupuids'))
151 $cn = $e[$i][$this->getConf('groupkey')][0];
152 $gn = $e[$i][$this->getConf('groupgid')]['0'];
156 if(array_key_exists($this->getConf('groupuids'), $e[$i]))
157 for($j = 0; $j < $e[$i][$this->getConf('groupuids')]['count']; $j++)
158 $users[$e[$i][$this->getConf('groupuids')][$j]]['grps'][] = $cn;
169 if($this->filter($uid, $users[$uid])) {
185 $c = $this->connect();
188 "ou={$this->getConf('group_ou')},{$this->getConf('base_dn')}",
189 "({$this->getConf('groupkey')}=*)",
190 Array($this->getConf('groupkey'))
201 $groups[] = $e[$i][$this->getConf('groupkey')][0];
219 foreach ($this->pattern as $item => $pattern) {
238 $this->pattern = array();
240 … $this->pattern[$item] = '/'.str_replace('/', '\/', $pattern).'/i'; // allow regex characters