CASify WPMU 3.1

From SOLR Wiki

Jump to: navigation, search

Contents

Basic Installation

Download and install the latest phpCAS (https://wiki.jasig.org/display/CASC/phpCAS, current version 1.2.0) under the root folder of the WPMU installation.

Install the wpcas plugin (http://wordpress.org/extend/plugins/wpcas/) - copy the file into wp-content/plugins. Do not enable it in the admin section.

In the wpcas plugin folder, there is a file "provisioning_example.php". Copy it to the WPMU root - I renamed it to "wpcas_provision.php".

Customization

Edit wpcas-conf.php

Edit the copied "provisioning_example.php" (For us it is: wpmuRoot/wpcas_provision.php). This file need heavy modify. Here is the whole file: wpcas_provision.php.

Edit the plugin file wpcas.php - the original file uses a hard coded url for logout. Several places need to be changed:

1. the login automatically goes to /wp-admin/. (at line 107). Comment it out:

                              wp_redirect( site_url( '/wp-admin/' ));

change it to:

                               wp_redirect( site_url('/'));

2. function logout() - arround line 130. Change the default logout URL to CAS server's logout by adding the following line:

                              phpCAS::setServerLogoutURL('https://YourCASServer/LogOut.Page');

Log in Username/Password

Next is to modify WPMU/Buddypress themes to remove the login username/password field.

The file is at:

/youWPMUinstallationRootFolder/wp-content/plugins/buddypress/bp-themes/bp-default/sidebar.php

comment out arround line 41 to line 48. sidebar.php

Email Notification of new user creation

line 1207 and line 1216 at /WPMUroot/wp-includes/pluggable.php are sending email notification for new user. pluggable.php Bold text Bold text

Personal tools
Toolbox