CASify this mediawiki

From SOLR Wiki

Jump to: navigation, search

1. Update Userlogin.php (includes/templates/Userlogin.php) to forward the login to the CAS login page _cas_login.php.

2. Change includes/SpecialPreferences.php to disable change password ($wgAuth->allowPasswordChange - should have a place to set this ?)

3. in _cas_login.php there is a place to specify where to store Cookies - change that folder to 777 CAS library - from http://www.its.queensu.ca/network/projects/CAS/phpCAS.shtml

4. Logout: add the following in LocatSettings.php

$wgHooks['UserLogoutComplete'][] = "casLogout";

function casLogout(){

  if ($_COOKIE["bccampus_wiki_mw_UserName"]){
      header("location:https://myprofile.bccampus.ca/logout.form?service=http%3A
%2F%2Fsolr2.bccampus.ca%2Fwiki%2F_cas_login.php");
      exit();
  }
}
Personal tools
Toolbox