Chuck, We have alternative AuthenticationManagers (from the default) that allow you to directly associate an AuthenticationHandler with a CredentialsToPrincipalResolver (the thing that ultimately retrieves the attributes).
I think this would be the one that you want: https://source.jasig.org/cas3/tags/cas-server-3.4.5/cas-server-core/src/main/java/org/jasig/cas/authentication/LinkedAuthenticationHandlerAndCredentialsToPrincipalResolverAuthenticationManager.java Note though that when responding to your application, if you cannot guarantee id uniqueness, the client application MUST check some other attribute that combined with the id guarantees uniqueness. Cheers, Scott On Mon, Feb 7, 2011 at 8:36 AM, CHUCK SYPERSKI <[email protected]>wrote: > I am just getting started with CAS, and I REALLY want to use it for all > of our organizations JSF applications, and I am able to get through the > basic examples without any issues and even setup everything up to pull > information from our LDAP server. Here is my problem and I haven't been > able to find too many example to assist me. We have two datastores of > users (LDAP for teachers and students and a DB for parents), and with > user id's that are not guaranteed to be unique between across data > sources. > > My question is how can I then get other attributes and roles for my > users in this case. For example, we are a school district and I would > like to be able to look up the user's teacher number (if the user is a > teacher; pulled from a JDBC source), but to reliably get this > information, I would need to know the datasource as well as the user id > to get this information, to be able to uniquely identify the user. It > seems like the response for CAS abstracts out this information, is this > correct. Is what I am trying to do even possible? If not, what > solutions do other sites use? > > I am new to CAS and Spring so please be gentle :) > > Thanks in advance for any help you can offer! > > Thanks, > Chuck Syperski > > > -- > 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 > > -- 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
