Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     // for compatibility
     $this->cando['addUser'] = true;
     // can Users be created?
     $this->cando['delUser'] = true;
     // can Users be deleted?
     $this->cando['modLogin'] = true;
     // can login names be changed?
     $this->cando['modPass'] = true;
     // can passwords be changed?
     $this->cando['modName'] = true;
     // can real names be changed?
     $this->cando['modMail'] = true;
     // can emails be changed?
     $this->cando['modGroups'] = true;
     // can groups be changed?
     $this->cando['getUsers'] = true;
     // can a (filtered) list of users be retrieved?
     $this->cando['getUserCount'] = true;
     // can the number of users be retrieved?
     $this->cando['getGroups'] = true;
     // can a list of available groups be retrieved?
     $this->cando['logout'] = true;
     // can the user logout?
     $this->cando['external'] = false;
     // does the module do external auth checking?
     $this->success = true;
 }
Exemplo n.º 3
0
 public function __construct()
 {
     global $config_cascade;
     parent::__construct();
     // fix if acl no used
     $this->success = true;
     $this->cando['external'] = true;
     $this->cando['logout'] = true;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     // for compatibility
     global $conf;
     $this->cnf = $conf['auth']['phpcvs'];
     $this->success = true;
     /* We fallback on the authplain module, so pretend we can do these things */
     $this->cando['addUser'] = true;
     $this->cando['delUser'] = true;
     $this->cando['modLogin'] = true;
     $this->cando['modPass'] = true;
     $this->cando['modName'] = true;
     $this->cando['modMail'] = true;
     $this->cando['modGroups'] = true;
     $this->cando['getUsers'] = true;
     $this->cando['getUserCount'] = true;
 }
Exemplo n.º 6
0
 /**
  * Constructor
  *
  * Sets capabilities.
  */
 public function __construct()
 {
     parent::__construct();
     $this->cando['external'] = true;
 }