Pablo, I am finishing up some refactoring of our custom CAS code and will see about contributing the latest change: a pluggable credentials formatter action.
Basically, in this action, you will inject credential formatters such as lowercase, trim, extract, etc and it will perform these based upon the type of credentials object found within the flow. I am trying to wrap up testing and cleaning of the code today, but I can give you a premature version of it. A- On 2/9/09 4:28 AM, "Pablo Millet" <[email protected]> wrote: > > First, thanks a lot for all replies to my question. > I find the this way to be the simplest. > (Please let us know if you see any problems with this solution) > > 1. Download and compile the attached code (rename to .java) > 2. Deploy .class to $CAS_HOME/WEB-INF/classes (in this case to package > 'classes/se/gu/cas/') > 3. Edit $CAS_HOME/WEB-INF/deployerConfigContext.xml > Comment out: > <bean > class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPri > ncipalResolver" > /> > Replace with our new bean: > <bean > class="se.gu.cas.CustomUsernamePasswordCredentialsToPrincipalResolver" /> > 4. Restart server and test! > > Done! > > > > Pablo Millet > University of Gothenburg > Running CAS 3.3 > > > > Pablo Millet wrote: >> As LDAP binding is not case-sensitive users can login with uppercase as >> userid and run in to problems later on when navigating to other >> case-sensitive CAS-clients. >> >> I use org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler as >> authenticationhandler. >> With CAS2 I solved it simply by doing toLowerCase on >> TicketGrantingTicket creation. >> >> Question; >> I need to convert userid's toLowerCase in CAS3. >> Before I go ahead I'd like to ask you if you done this already and if >> you have any recommendations or 'best practice' on where and how to do >> the lower-case convertion? >> Can I do this the "Spring" way somehow... any examples? >> >> Thanx >> - Pablo >> Running CAS 3.3 >> >> >> >> > -- Andrew Feller, Analyst LSU University Information Services 200 Frey Computing Services Center Baton Rouge, LA 70803 Office: 225.578.3737 Fax: 225.578.6400 -- 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
