Lines Matching refs:getConf

44         $this->cando['modPass'] = $this->getConf('modPass');
66 if ($this->getConf('binddn') && $this->getConf('bindpw')) {
68 if (!@ldap_bind($this->con, $this->getConf('binddn'), conf_decodeString($this->getConf('bindpw')))) {
74 $this->getConf('binddn') &&
75 $this->getConf('usertree') &&
76 $this->getConf('userfilter')
80 $this->getConf('binddn'),
81 ['user' => $user, 'server' => $this->getConf('server')]
83 } elseif (strpos($this->getConf('usertree'), '%{user}')) {
86 $this->getConf('usertree'),
87 ['user' => $user, 'server' => $this->getConf('server')]
170 if ($this->getConf('binddn') && $this->getConf('bindpw') && $this->bound < 2) {
172 if (!@ldap_bind($this->con, $this->getConf('binddn'), conf_decodeString($this->getConf('bindpw')))) {
192 $info['server'] = $this->getConf('server');
196 $base = $this->makeFilter($this->getConf('usertree'), $info);
197 if ($this->getConf('userfilter')) {
198 $filter = $this->makeFilter($this->getConf('userfilter'), $info);
206 $sr = $this->ldapSearch($this->con, $base, $filter, $this->getConf('userscope'), $this->getConf('attributes'));
249 if (is_array($this->getConf('mapping'))) {
250 foreach ($this->getConf('mapping') as $localkey => $key) {
273 if ($this->getConf('grouptree') || $this->getConf('groupfilter')) {
274 $base = $this->makeFilter($this->getConf('grouptree'), $user_result);
275 $filter = $this->makeFilter($this->getConf('groupfilter'), $user_result);
280 $this->getConf('groupscope'),
281 [$this->getConf('groupkey')]
294 if (!empty($grp[$this->getConf('groupkey')])) {
295 $group = $grp[$this->getConf('groupkey')];
356 } elseif ($this->getConf('binddn') && $this->getConf('bindpw')) {
359 if (!@ldap_bind($this->con, $this->getConf('binddn'), conf_decodeString($this->getConf('bindpw')))) {
410 if ($this->getConf('userfilter')) {
411 $all_filter = str_replace('%{user}', '*', $this->getConf('userfilter'));
415 $sr = ldap_search($this->con, $this->getConf('usertree'), $all_filter);
418 $userkey = $this->getConf('userkey');
543 if ($this->getConf('debug')) {
549 $port = $this->getConf('port');
551 $servers = explode(',', $this->getConf('server'));
568 if ($this->getConf('version')) {
573 $this->getConf('version')
576 msg('Setting LDAP Protocol version ' . $this->getConf('version') . ' failed', -1);
580 if ($this->getConf('starttls')) {
587 if ($this->getConf('referrals') > -1) {
592 $this->getConf('referrals')
603 if ($this->getConf('deref')) {
604 if (!@ldap_set_option($this->con, LDAP_OPT_DEREF, $this->getConf('deref'))) {
605 msg('Setting LDAP Deref mode ' . $this->getConf('deref') . ' failed', -1);
614 if ($this->getConf('binddn') && $this->getConf('bindpw')) {
615 $bound = @ldap_bind($this->con, $this->getConf('binddn'), conf_decodeString($this->getConf('bindpw')));
700 if (!$this->getConf('debug')) return;