Thanks Gopi and M, Worked great! Chris Whittle SWAT Team Developer J.B. Hunt Transport Services, Inc. Office Phone:(479) 419-3122 Ext:73122 Fax Phone:(479) 820-1769 chris_whit...@jbhunt.com What's your next move?TM Intermodal | Dedicated | Truckload | LTL | Delivery | Refrigerated | Flatbed | Expedited
Marvin Addison <marvin.addi...@gmail.com> 03/01/2010 08:44 AM Please respond to cas-dev@lists.jasig.org To cas-dev@lists.jasig.org cc Subject Re: [cas-dev] LDAP using CN or Email for Authentication But Storing CN as Principal > I'm pretty sure I saw how to do this before but I want to have CAS take in either email address or userid from the login screen but store CN as the Principal. There are two steps to this: 1. Use BindLdapAuthenticationHandler with a filter that performs a search on either email or userid, e.g. <property name="filter" value="(|(userid=%u)(email=%u))" /> 2. Use CredentialsToLDAPAttributePrincipalResolver to resolve a new principal based on CN once authentication has succeeded http://www.ja-sig.org/wiki/display/CASUM/LDAP is a good reference for LDAP authentication in general. http://www.ja-sig.org/wiki/display/CASUM/Attributes has an example of CredentialsToLDAPAttributePrincipalResolver. M -- You are currently subscribed to cas-dev@lists.jasig.org as: chris_whit...@jbhunt.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
<<image/gif>>