[NEWSENDER] - Re: User information - Message is from an unknown sender

Li Wei Nan liweinan at chinaedu.net
Wed Feb 13 21:35:10 EST 2008


Besides user loginname, can I get any additional information about user?

It's seems CAS can manage and populate principal's attribute. Is it  
stored in session or there's a CAS protocol to fetch it?

In WIKI there's a config sample with LDAP, but ours is JDBC. And it  
says "Attributes are controlled by the JA-SIG Person Directory project"

Does that mean I must use this project to fetch user attributes?


Thanks,
- Li Wei Nan





Le 2008-2-14 à 上午7:27, Wilson França a écrit :

> Thanx!
>
> On Feb 13, 2008 5:39 PM, Ole Ersoy <ole.ersoy at gmail.com> wrote:
> I think you want this:
>
> HttpServletRequest.getUserPrincipal()
>
> This returns:
> java.security.Principal
>
>
> Now call
> java.security.Principal.getName()
>
> to get the name of Principal (User that logged in).
>
> Cheers,
> - Ole
>
>
>
>
> Wilson França wrote:
> > Hi,
> >
> > Can i get information about the user after login is successfull?
> >
> > if yes, how?
> >
> > Thanx
> >
> > Wilson
> >
> >
> >  
> ---------------------------------------------------------------------- 
> --
> >
> > _______________________________________________
> > Yale CAS mailing list
> > cas at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080214/c2dee312/attachment.html 


More information about the cas mailing list