Lines Matching refs:this

27         if (!$this->debug)
39 $this->loadConfig();
44 $pluginName = $this->getConf($settingName);
46 msg(sprintf($this->getLang('nocfg'), $settingName), -1);
47 $this->success = false;
51 $this->authplugins[$type] = plugin_load('auth', $pluginName);
52 if (!$this->authplugins[$type]) {
53 msg(sprintf($this->getLang('pluginload'), $pluginName), -1);
54 $this->success = false;
58 $this->authplugins[$type] = null;
63 $this->autocreate_users = $this->getConf('autocreate_users', null);
64 if ($this->autocreate_users === null) {
65 msg(sprintf($this->getLang('nocfg'), 'autocreate_users'), -1);
66 $this->success = false;
71 $this->username_caseconversion = $this->getConf('username_caseconversion', null);
72 if ($this->username_caseconversion === null) {
73 msg(sprintf($this->getLang('nocfg'), 'username_caseconversion'), -1);
74 $this->success = false;
79 $this->debug = $this->getConf('debug', null);
80 if ($this->debug === null) {
81 msg(sprintf($this->getLang('nocfg'), 'debug'), -1);
82 $this->success = false;
87 support that. However, at this place we just consider the secondary
90 $this->cando['modLogin'] = $this->authplugins['secondary']->canDo('modLogin');
93 $this->cando['modPass'] = $this->authplugins['primary']->canDo('modPass');
100 $this->cando[$cap] = $this->authplugins['secondary']->canDo($cap);
105 $this->cando['external'] = $this->authplugins['primary']->cando['external'];
108 $this->cando['logout'] = $this->authplugins['primary']->canDo('logout');
111 $this->authplugins['primary']->getPluginName().'/'.
112 $this->authplugins['secondary']->getPluginName().' '.
127 foreach ($this->cando as $key => $value) {
128 if ($this->cando[$key])
132 $this->_debug($msg, 1, __LINE__, __FILE__);
148 if (!$this->authplugins['primary']->checkPass($user, $pass)) {
149 $this->_debug(
155 $this->_debug(
162 return $this->_checkUserOnSecondaryAuthPlugin($user);
181 if (!$this->authplugins['primary']->trustExternal($user, $pass, $sticky)) {
182 $this->_debug(
192 $this->_debug(
199 if ($this->_checkUserOnSecondaryAuthPlugin($user)) {
202 $USERINFO = $this->getUserData($user, true);
216 $userinfo = $this->authplugins['secondary']->getUserData($user, false);
220 $this->_debug(
226 $this->_debug(
228 $this->autocreate_users.'.',
229 $this->autocreate_users == 1 ? 1 : -1,
234 if (!$this->autocreate_users)
238 if (!$this->authplugins['secondary']->cando['addUser']) {
241 $this->getLang('erraddusercap'),
242 $this->authplugins['secondary']->getPluginName()
252 $params = $this->authplugins['primary']->getUserData($user, true);
256 $this->getLang('erradduserinfo'),
257 $this->authplugins['primary']->getPluginName()
263 $this->_debug(
265 'getUserData(): '.$this->_dumpUserData($params).'.',
270 $result = $this->triggerUserMod(
279 $this->_debug(
288 msg($this->getLang('autocreated'), -1);
302 return $this->authplugins['primary']->logOff();
311 return $this->authplugins['primary']->logIn();
330 $userinfo = $this->authplugins['primary']->getUserData($user, false);
332 $this->_debug(
340 $userinfo = $this->authplugins['secondary']->getUserData($user, $requireGroups);
342 $this->_debug(
349 $this->_debug(
351 $this->_dumpUserData($userinfo).'.', 1, __LINE__, __FILE__
380 * The new user HAS TO be added to the default group by this
395 $userinfo = $this->authplugins['primary']->getUserData($user, false);
396 if (!$userinfo && $this->authplugins['primary']->cando['addUser']) {
397 $result = $this->authplugins['primary']->createUser(
401 $this->_debug(
407 $this->_debug(
414 $result = $this->authplugins['secondary']->createUser(
418 $this->_debug(
425 $this->_debug(
450 $result = $this->authplugins['primary']->modifyUser(
457 $this->_debug(
466 $result = $this->authplugins['secondary']->modifyUser(
473 $this->_debug(
483 if ($this->authplugins['primary']->canDo['mod' . ucfirst($field)]) {
484 $result = $this->authplugins['primary']->modifyUser(
490 $this->_debug(
499 $result = $this->authplugins['secondary']->modifyUser(
506 $this->_debug(
531 $result = $this->authplugins['secondary']->deleteUsers($users);
533 $this->_debug(
555 $result = $this->authplugins['secondary']->retrieveUsers(
559 $this->_debug(
577 $result = $this->authplugins['secondary']->getUserCount($filter);
579 $this->_debug(
597 $result = $this->authplugins['secondary']->addGroup($group);
599 $this->_debug(
618 $result = $this->authplugins['secondary']->retrieveGroups($start, $limit);
620 $this->_debug(
632 * user) then you need to overwrite this method and return false
638 $result = $this->authplugins['primary']->isCaseSensitive();
640 $this->_debug(
661 $result = $this->authplugins['primary']->cleanUser($user);
662 $this->_debug(
668 if ($this->username_caseconversion == 'To uppercase') {
670 $this->_debug(
675 elseif ($this->username_caseconversion == 'To lowercase') {
677 $this->_debug(
703 $result = $this->authplugins['secondary']->cleanGroup($group);
704 $this->_debug(