The latest version of mod_auth_cas now supports
Require cas-attribute <attribute>~<value>
which can be used to verify group membership (source [1]). The format of this attribute and regular expression may vary depending on your CAS server. If your groups are in LDAP, you can also combine mod_auth_cas with mod_authnz_ldap, with CAS authentication and LDAP authentication, for example:
AuthType CAS AuthLDAPURL "ldap://ldap.example.com/ou=Users,dc=example,dc=com?uid?sub?(objectClass=*)" STARTTLS AuthLDAPGroupAttribute member Require ldap-group cn=my_role,ou=Groups,dc=example,dc=com
If you want to use the "Require ldap-group", which will be authorized using mod_authnz_ldap in combination with the "Require user", which will allow the use of mod_auth_cas, then be sure to enable "AuthzLDAPAuthoritative off" (CASAuthoritative is already disabled by default).
[1] https://github.com/Jasig/mod_auth_cas (note that version 1.0.10 has not yet been released)
source share