Drupal: Difference between revisions

From RavenWiki
Jump to navigationJump to search
(Stun note about 6.x version)
(Updated for a new version)
Line 1: Line 1:
Shawn Tan's Drupal module.
Shawn Tan's Drupal module. Updated by David Newgas.
 
'''Note:''' An updated version of this module for version 6.x of Drupal is available (thanks to David Newgas) at http://raven.cam.ac.uk/project/drupal/files/ucamraven-6.x.tar.gz


== Objective ==
== Objective ==
This Drupal module was created to allow any website that uses Drupal, to authenticate via Raven. The module runs fine on both 4.6 and 4.7 versions of Drupal.
This Drupal module was created to allow any website that uses Drupal, to authenticate via Raven. The module runs fine on both 6.0 and 6.1 versions of Drupal.


== Installation ==
== Installation ==
Line 12: Line 10:
Login as the administrator for your Drupal based site.
Login as the administrator for your Drupal based site.


Click on admin => modules.
* Go to /user/1/edit and ensure the admin account is a CRSID.


Enable the "ucamraven" module.
* Click on admin => modules. Enable the "ucamraven" module.


''You should remove the default "login" and "logout" menu items in the menu.''
* Click on admin => menus => navigation. Uncheck the "Log out" item to disable non-raven authentication·


== User Login ==
== User Login ==


Any user that clicks on the "raven login" link in the main menu will be redirected to the standard Raven login page. Once the user has authenticated with Raven, the user will be redirected back to the original website.
Any user that clicks on the "raven login" link in the main menu will be redirected to the standard Raven login page. Once the user has authenticated with Raven, the user will be redirected back to the original website.
If no user account exists for that CRSID, one will be created.


== Admin Login ==
== Admin Login ==


Due to the way that the module is written, the site administrator may not be able to login to the website through Raven. This is true when the admininstrator username is not a standard CRSID.
The admin account must be a CRSID to log in using the raven system. Administrators with non CRSID account names can by-pass the Raven login by explicitly using the standard Drupal login page "user/login".
 
Administrators can by-pass the Raven login by explicitly using the standard Drupal login page "user/login".


== License ==
== License ==
Line 35: Line 33:


The UCam Raven Drupal module can be downloaded here:
The UCam Raven Drupal module can be downloaded here:
http://raven.cam.ac.uk/project/drupal/files/ucamraven-6.x.tar.gz
An old version for drual 4.6 and 4.7 is here:
http://raven.cam.ac.uk/project/drupal/files/ucamraven-4.7.0.tar.gz
http://raven.cam.ac.uk/project/drupal/files/ucamraven-4.7.0.tar.gz



Revision as of 12:01, 3 March 2008

Shawn Tan's Drupal module. Updated by David Newgas.

Objective

This Drupal module was created to allow any website that uses Drupal, to authenticate via Raven. The module runs fine on both 6.0 and 6.1 versions of Drupal.

Installation

Un-tar the module into your Drupal's "module" directory. It will be placed in a "ucamraven" sub-directory.

Login as the administrator for your Drupal based site.

  • Go to /user/1/edit and ensure the admin account is a CRSID.
  • Click on admin => modules. Enable the "ucamraven" module.
  • Click on admin => menus => navigation. Uncheck the "Log out" item to disable non-raven authentication·

User Login

Any user that clicks on the "raven login" link in the main menu will be redirected to the standard Raven login page. Once the user has authenticated with Raven, the user will be redirected back to the original website.

If no user account exists for that CRSID, one will be created.

Admin Login

The admin account must be a CRSID to log in using the raven system. Administrators with non CRSID account names can by-pass the Raven login by explicitly using the standard Drupal login page "user/login".

License

This module is released under GPLv2. A copy of the license is included in the module package.

Download

The UCam Raven Drupal module can be downloaded here: http://raven.cam.ac.uk/project/drupal/files/ucamraven-6.x.tar.gz

An old version for drual 4.6 and 4.7 is here: http://raven.cam.ac.uk/project/drupal/files/ucamraven-4.7.0.tar.gz

Author

Author's contact information is available in the module source file.