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 
<http://es.rd.yahoo.com/evt:51361/*http:/es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367>
 .


_______________________________________________
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 
<http://es.rd.yahoo.com/evt:51361/*http:/es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367>
 .

 

 

________________________________


¿Chef por primera vez? - Sé un mejor Cocinillas.
Entra en Yahoo! Respuestas 
<http://es.rd.yahoo.com/evt:51361/*http:/es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367>
 .

 

 

________________________________


¿Chef por primera vez? - Sé un mejor Cocinillas.
Entra en Yahoo! Respuestas 
<http://es.rd.yahoo.com/evt:51361/*http:/es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=396545367>
 .

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

Reply via email to