The CAS and CAS attributes projects allow a drupal site to act as a CAS client. The latest versions include also basic mapping of roles.

However, if you need a more complicated role mapping from the CAS attributes with regular expressions for example this will complete the other CAS modules.

* map the roles from drupal if the regular expression fits the CAS attributes in a specified way.

The mapping with regular expressions allows several attributes to be considered in combination.

Assemble in a token-like syntax a string which is matched against the regular expressions for each role.
If the token represents an array, a string for each item will be evaluated. Multiple CAS attribute token can be used together for even more flexibility.

The development of this module was supported by the European Youth Foundation

Supporting organizations: 
Initial development.

Project information