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
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to