Skip to content

Handle multivalued fields in roles filters - #6

Open
jusabatier wants to merge 1 commit into
CGCookie:masterfrom
jusabatier:patch-1
Open

Handle multivalued fields in roles filters#6
jusabatier wants to merge 1 commit into
CGCookie:masterfrom
jusabatier:patch-1

Conversation

@jusabatier

Copy link
Copy Markdown

This allow to handle multivalued fields in roles assignation filters.

For example this filter will work correctly :

role1|(CAS{memberOf} -CONTAINS "cn=ROLE1")

Form this response XML :

<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
    <cas:authenticationSuccess>
        <cas:user>tuser</cas:user>
        <cas:attributes>
            <cas:isFromNewLogin>true</cas:isFromNewLogin>
            <cas:mail>test@test.fr</cas:mail>
            <cas:authenticationDate>2021-04-27T10:33:52.006071Z</cas:authenticationDate>
            <cas:givenName>Test</cas:givenName>
            <cas:successfulAuthenticationHandlers>LdapAuthenticationHandler</cas:successfulAuthenticationHandlers>
            <cas:cn>Test User</cas:cn>
            <cas:credentialType>UsernamePasswordCredential</cas:credentialType>
            <cas:uid>tuser</cas:uid>
            <cas:authenticationMethod>LdapAuthenticationHandler</cas:authenticationMethod>
            <cas:longTermAuthenticationRequestTokenUsed>false</cas:longTermAuthenticationRequestTokenUsed>
            <cas:memberOf>cn=USER,ou=roles,dc=lepuyenvelay,dc=fr</cas:memberOf>
            <cas:memberOf>cn=TEST1,ou=roles,dc=lepuyenvelay,dc=fr</cas:memberOf>
            <cas:sn>User</cas:sn>
            </cas:attributes>
    </cas:authenticationSuccess>
</cas:serviceResponse>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant