But that means another LDAP query which is wasteful...

What if I alter the BindLDAPAuthenticationHandler to receive an
additional parameter which is an LDAP attribute and after the LDAP
query, if it was successful, do a setUserName on the credentials with
the attribute value?

Scott Battaglia wrote:
> I'm assuming you want REMOTE_USER set on the client side and not on
> the CAS server?  If that's the case you merely need to create a
> CredentialsToPrincipalResolver that will take the user supplied
> credentials (i.e. email address and password) and map them to the
> appropriate username.  CAS will return to the clients whatever ID
> value the principal has as the username.
>
> -Scott
>
> On 1/11/07, *André Cruz* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hello.
>
>     I have my CAS server authenticating using an LDAP backend. Is it
>     possible to set REMOTE_USER to an attribute returned in the LDAP
>     query?
>
>     For example: a user authenticates using it's email and REMOTE_USER is
>     set to their username in the system.
>
>     Thanks,
>     André Cruz
>
>
>
>     _______________________________________________
>     Yale CAS mailing list
>     [email protected] <mailto:[email protected]>
>     http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>   

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to