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('at…
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')))…
368 if ($this->getConf('modPassPlain')) {
414 if ($this->getConf('userfilter')) {
415 $all_filter = str_replace('%{user}', '*', $this->getConf('userfilter'));
419 $sr = ldap_search($this->con, $this->getConf('usertree'), $all_filter);
422 $userkey = $this->getConf('userkey');
547 if ($this->getConf('debug')) {
553 $port = $this->getConf('port');
555 $servers = explode(',', $this->getConf('server'));
576 if ($this->getConf('version')) {
581 $this->getConf('version')
584 … msg('Setting LDAP Protocol version ' . $this->getConf('version') . ' failed', -1);
588 if ($this->getConf('starttls')) {
595 if ($this->getConf('referrals') > -1) {
600 $this->getConf('referrals')
611 if ($this->getConf('deref')) {
612 if (!@ldap_set_option($this->con, LDAP_OPT_DEREF, $this->getConf('deref'))) {
613 msg('Setting LDAP Deref mode ' . $this->getConf('deref') . ' failed', -1);
622 if ($this->getConf('binddn') && $this->getConf('bindpw')) {
623 …$bound = @ldap_bind($this->con, $this->getConf('binddn'), conf_decodeString($this->getConf('bindpw…
708 if (!$this->getConf('debug')) return;