tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tam, Michael" <m...@PFC.Forestry.CA>
Subject RE: Retrieve User - Realm
Date Sat, 14 Dec 2002 00:16:32 GMT
Sorry for the misleading.  You are right Jeanfrancois.  Thank you for
pointing this out.

If only user name needed, try getRemoteUser().
If principal(user) object needed, try getUserPrincipal().

Regards,
Michael

-----Original Message-----
From: Jeanfrancois Arcand [mailto:jfarcand@apache.org]
Sent: Friday, December 13, 2002 11:53 AM
To: Tomcat Users List
Subject: Re: Retrieve User - Realm


I think you are wrong. What he is looking for is:

HttpServletRequest.getUserPrincipal() that return the 
java.security.Principal object created within the Realm.

-- Jeanfrancois

-- Jeanfrancois

Tam, Michael wrote:

>It is in the API.  Take a look at
>javax.servlet.http.HtppServletRequest.getRemoteUser()
>
>Cheers,
>Michael
>
>-----Original Message-----
>From: afterz@zipmail.com [mailto:afterz@zipmail.com]
>Sent: Friday, December 13, 2002 10:14 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Retrieve User - Realm
>
>
>Hello,
>
>I searched many places and read many things, but I didn't
> find any example that retrieve the user from the session
> after it is authenticated with realm.
>
>Can someone help me?
>
>Thanks.
>________________________________________________
>Don't E-Mail, ZipMail! http://www.zipmail.com/
>
>--
>To unsubscribe, e-mail:
><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:tomcat-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>
>  
>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message