public function __construct() { parent::__construct(); $this->cando['external'] = true; $this->cando['logoff'] = true; /* We only want auth_plain for e-mail tracking and group storage */ $this->cando['addUser'] = false; $this->cando['modLogin'] = false; $this->cando['modPass'] = false; $this->cando['modName'] = false; $this->cando['modMail'] = false; $this->cando['modGroups'] = false; $cert = $this->getConf('certificate'); $cert = wordwrap($cert, 65, "\n", true); $cert = trim($cert); if (!preg_match('/^-----BEGIN CERTIFICATE-----.*-----END CERTIFICATE-----$/s', $cert)) { $cert = "-----BEGIN CERTIFICATE-----\n{$cert}\n-----END CERTIFICATE-----"; } // prepare settings object $this->settings = new SamlSettings(); $this->settings->idp_sso_target_url = $this->getConf('endpoint'); $this->settings->x509certificate = $cert; $this->settings->assertion_consumer_service_url = DOKU_URL . DOKU_SCRIPT; $this->settings->issuer = DOKU_URL; $this->settings->name_identifier_format = null; }
public function __construct() { global $config_cascade; parent::__construct(); // fix if acl no used $this->success = true; $this->cando['external'] = true; $this->cando['logout'] = true; }
public function __construct() { global $conf, $config_cascade; parent::__construct(); $this->cando['external'] = true; $this->cando['logout'] = true; $this->cando['delUser'] = false; $this->success = true; return; }
/** * Enhance function to check against duplicate emails * * @param string $user * @param array $changes * @return bool */ public function modifyUser($user, $changes) { global $conf; if (isset($changes['mail'])) { $found = $this->getUserByEmail($changes['mail']); if ($found != $user) { msg($this->getLang('emailduplicate'), -1); return false; } } $ok = parent::modifyUser($user, $changes); // refresh session cache touch($conf['cachedir'] . '/sessionpurge'); return $ok; }
/** * Remove one or more users from the list of registered users * * @author Christopher Smith <*****@*****.**> * @param array $users array of users to be deleted * @return int the number of users deleted */ function deleteUsers($users) { $deleted = array(); foreach ($users as $key => $user) { $cvs_reply = $this->_checkCVSPass($user); // user exists because we got a password mismatch error if ($cvs_reply === 2) { unset($users[$key]); } } $users = array_values($users); return parent::deleteUsers($users); }
/** * Return case sensitivity of the backend * * When your backend is caseinsensitive (eg. you can login with USER and * user) then you need to overwrite this method and return false * * @return bool */ public function isCaseSensitive() { return parent::isCaseSensitive(); }