How to use cas-attributes

Discussion in 'Apache' started by Jerome Gauthier, Apr 17, 2020.

  1. #1
    I have a working mod_auth_cas setup on my server but I would like to use the "require cas-attribute" to validate users with something else than their user name but I don't know how to do it. I tried a couple of things like that:

    <Directory "/some/directory">
    AuthType CAS
    require cas-attribute tamuEduPersonNetID myownnetid
    </Directory>

    But no success. The university provides this technical information:

    Successful validation
    CAS returns an XML document containing: <cas:serviceResponse xmlns:cas='https://www.yale.edu/tp/cas'>
    <cas:authenticationSuccess>
    <cas:user>netid</cas:user>
    <cas:attributes>
    <cas:tamuEduPersonUIN>#########</cas:tamuEduPersonUIN>
    <cas:tamuEduPersonNetID>netid</cas:tamuEduPersonNetID>
    </cas:attributes>
    </cas:authenticationSuccess>
    </cas:serviceResponse>


    I am pretty sure the key to make it work is there but I have no idea how to do it. Any advice?
     
    Jerome Gauthier, Apr 17, 2020 IP