Docuwiki alternative CAS autentication driver
cas-auth-hack.php works by overwriting (login, logout) or blocking (admin, profile, usermanager) default Dokuwiki actions.
- Copy folder /cas-auth-hack/ to wiki root directory
- Edit doku.php and include ./cas-auth-hack/cas-auth-hack.php in doku.php just after require_once(DOKU_INC.'inc/init.php'); (see code below)
- Make sure to delete install.php
- Configure CAS host, port and path inside conf/dokuwiki.php (see Configuration section)
// File docu.php
// CAS hack - important - should be included before act_dispatch
//require_once(__DIR__.'/cas-auth-hack/cas-auth-hack.php');
// File doku.php
// (...)
// load and initialize the core system
require_once(DOKU_INC.'inc/init.php');
// CAS hack - important - should be included before act_dispatch
require_once(__DIR__.'/cas-auth-hack/cas-auth-hack.php');
// (...)
Edit conf/dokuwiki.php and specify the following values:
// CAS driver settings
$conf['cas']['host'] = 'cas.example.com';
$conf['cas']['port'] = 443;
$conf['cas']['path'] = '/cas';