thanks a lot for the fast response Meik,
what jsp would that be? I will dive into those, but if you can give em some
extra light that'd be great.
Angel
----- Mensaje original ----
De: Meik Suchlich <[EMAIL PROTECTED]>
Para: Yale CAS mailing list <[email protected]>
Enviado: viernes, 14 de diciembre, 2007 12:39:13
Asunto: AW: modify login to use 3 fields
<!--
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times
New Roman";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;text-decoration:underline;}
p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times
New Roman";}
span.E-MailFormatvorlage17
{font-family:Arial;color:navy;}
_filtered {margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{}
-->
Hi,
I think you have to modify the jsp on the cas-server
which generates the response, so that your Parameter is put in.
But I’m not so experienced in cas…
Meik
Von:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Angel Q
Gesendet: Freitag, 14. Dezember
2007 12:00
An: Yale CAS mailing list
Betreff: Re: modify login to use 3
fields
Hi everyone,
Thanks for the link to the code Andrew.
I'm on the CAS Client 2.1.0 trying to modify it to take the new
parameter.... but I don´t seem to be able to find out where the CAS_FILTER_USER
session attribute value is set.
After tracing all over I've come to the conclussion I need to implement the new
field in the buffer.
The values are read in:
edu.yale.its.tp.cas.util.SecureURL
URLConnection
uc = u.openConnection();
uc.setRequestProperty("Connection", "close");
r = new
BufferedReader(new InputStreamReader(uc.getInputStream()));
String line;
StringBuffer
buf = new StringBuffer();
when the buf is appended I do not get the value for the new field. Where are
those values set on fist place?
Thank you so much!!!
Angel
----- Mensaje original
----
De: Angel Q <[EMAIL PROTECTED]>
Para: Yale CAS mailing list <[email protected]>
Enviado: miércoles, 12 de diciembre, 2007 19:07:28
Asunto: Re: modify login to use 3 fields
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.
¿Chef por primera vez? - Sé un mejor Cocinillas.
Entra
en Yahoo! Respuestas.
______________________________________________
¿Chef por primera vez?
Sé un mejor Cocinillas.
http://es.answers.yahoo.com/info/welcome_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas