This is an authentication plugin for Moodle that authenticates users via a Central Authentication Service (CAS) server and populates the Moodle user-account's attributes from user-attributes included in the CAS response.
This method does not make use of LDAP for user-attribute lookup, allowing its use in situations where there is no LDAP server that includes user information, or there are multiple LDAP servers that include user information.
This authentication method makes use of the attributes returned by the phpCAS library's phpCAS::getAttributes()
function and which are often returned from modern CAS servers.
Download the source for this authentication module and place it in moodle/auth/casattras/
.
This can be accomplished with
cd /path/to/my/moodle/
git clone https://github.com/middlebury/Moodle-auth_casattras.git auth/casattras
Log into Moodle as a site adminstrator. You should be prompted to run a database update to install the plugin.
If you are going to configure SSL certificate validation of the CAS server (to prevent man-in-the-middle attacks on the login response) then save the certificate-authority certificate (CA-cert) to the filesystem where it is readable by Moodle and note its path.
The following sample database query would migrate users from the cas
authentication method to casattras
:
UPDATE mdl_user SET auth='casattras' WHERE auth='cas';
Charles Fulton (fultonc@lafayette.edu) Adam Franco