Hello
In my app I need to use Combined Realm to check user authentication in a
tomcat-users.xml file and then in CAS if users are not found.
I have configured something like this in context
<Realm className="org.apache.catalina.realm.CombinedRealm" >
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Realm
className="org.jasig.cas.client.tomcat.v7.AssertionCasRealm"
roleAttributeName="roles" />
</Realm>
<Valve
className="org.jasig.cas.client.tomcat.v7.Cas20CasAuthenticator"
encoding="UTF-8"
casServerLoginUrl="..."
casServerUrlPrefix="..."
serverName="..."
/>
Application fails with following error "java.lang.IllegalArgumentException:
Expected CasRealm but got org.apache.catalina.realm.RealmBase/1.0"
Googling I found a 2011 discution here
https://groups.google.com/forum/#!topic/jasig-cas-user/cTfKKz6spsk
In this topic conclusion, there is this
That error sounds familiar. It's entirely possible I made some assumptions in
the design of that component that limit integration options......I fully expect
the outcome of the code review to result in a Jira issue for improvement to
support your integration scenario. The amount of effort required to implement
the feature will determine the timeframe.
But I was not able to find a related Jira issue.
Is there any way to combine other authentication with cas authentication in the
same application ?
Regards,
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user