Closed (fixed)
Project:
CAS
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
17 May 2007 at 23:51 UTC
Updated:
7 Jun 2014 at 20:59 UTC
Jump to comment: Most recent, Most recent file
The attached patch adds a setting to the CAS configuration page that allows administrators to define what role(s) CAS users should receive. These roles are setup upon account creation and updated upon every login.
It removes the default DRUPAL_AUTHENTICATED_RID role, but this role is automatically set for any new user.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | cas-144867.patch-2.txt | 2.59 KB | jrbeeman |
| #1 | cas-144867.patch.txt | 2.53 KB | jrbeeman |
| cas_admin_configurable_roles.txt | 3.84 KB | jrbeeman |
Comments
Comment #1
jrbeemanUpdated patch against cas-5.x-2.1. This patch has the added benefit of reseting the user's local Drupal password upon every login for added security.
Comment #2
metzlerd commentedI did some testing on this and when no CAS role is defined, I get the following warnings:
I think you can fix this by changing the default value returned by variable_get to an array type, but haven't tested the change. Could you fix this and post another patch?
Thanks,
Dave
Comment #3
jrbeemanI believe I have fixed the issue. See the new attached patch.
Comment #4
metzlerd commentedThanks, that did it. Committed in HEAD.
Comment #5
(not verified) commented