Angel,

Source code is distributed with the Yale Java CAS client distros (.zip files).

However, some time ago I drew that source code into SVN source control in this Google Code project:

http://code.google.com/p/legacy-java-cas-client/

so that it is available for issue tracking, posting patches against, even for ongoing maintenance.

Andrew


On Dec 12, 2007, at 11:07 AM, Angel Q wrote:

Hi everyone,

I did the changes as said and now the login works, but:
the companyname, username and password are required to to the users and if correct the users gets given the ticket. Now on my app I need to knwo the values for the username and companyname. I think the username can be found out with the clienent library. edu.yale.its.tp.cas.client.filter.CASFilter.CAS_FILTER_USER

How can I get now the value for the CAS_FILTER_COMPANY ? do I need to extend any library?

I have been looking for the source code for the casclient, but I coud not find it anywhere. Is it available on any SVN?

I hope it all makes sense.... Thank you,

Angel


----- Mensaje original ----
De: Angel Q <[EMAIL PROTECTED]>
Para: Yale CAS mailing list <[email protected]>
Enviado: viernes, 30 de noviembre, 2007 12:52:00
Asunto: Re: modify login to use 3 fields

Hi Scott and the rest of the croud,

I have managed to do as you said, but I could not extend UsernamePasswordCredentials, I just had to modify it...

A question has arrised:
on deployerConfigContext.xml I should define both values for the login
cn=%u for the user
ou=%e for the company

as in: <property name="filter" value="cn=%u,ou= %e,dc=example,dc=com" />

How does the %u value get set? how can I include the new one (%e)?

thanks a lot!!

Angel

----- Mensaje original ----
De: Scott Battaglia <[EMAIL PROTECTED]>
Para: Yale CAS mailing list <[email protected]>
Enviado: miércoles, 21 de noviembre, 2007 19:26:08
Asunto: Re: modify login to use 3 fields

Angel,

You'll need to extend the UsernamePasswordCredentials to accept another field (adding the appropriate setters and getters), modify the cas-servlet.xml, looking for the "authenticationViaFormAction", and adding two properties, the formObjectClass which will be the fully qualified class name (including package) of your new Credentials class, and the formObjectName (which can be set to "credentials").

You'll then need to modify the login page to show the third field. It should automatically be bound and passed along to the service layer.

-Scott

On Nov 21, 2007 12:32 PM, Angel Q < [EMAIL PROTECTED]> wrote:
Hello List,

Maybe I am repeating myself, but I just don't seem to get it.

I need to modify the login so I have 3 fields input by the user:
Company ID
UserName
Password

My LDAP is already modified and the structure is:
DN: cn=[UserName],ou=[CompanyId],dc=example,dc=com


How can I get this going? Do I need to change any classes on the cas server?

Thank you very much for your help guys,

Angel Quintana


¿Chef por primera vez? - Sé un mejor Cocinillas.
Entra en Yahoo! Respuestas.

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas




--
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia



¿Chef por primera vez? - Sé un mejor Cocinillas.
Entra en Yahoo! Respuestas.



¿Chef por primera vez? - Sé un mejor Cocinillas.
Entra en Yahoo! Respuestas.
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to