Hi-

As I understand it, HttpServletRequest.getRemoteUser() returns the user
name entered if HTTP authentication (RFC2617) is used.  According to the
JavaDoc, its return value is "Same as the value of the CGI variable
REMOTE_USER."

-Terence M. Bandoian

> Subject:
> Re: How to populate session after authenticate
> From:
> "Nic Daniau" <[EMAIL PROTECTED]>
> Date:
> Tue, 28 Mar 2006 12:55:50 +0100
> To:
> "Tomcat Users List" <users@tomcat.apache.org>
>
> To:
> "Tomcat Users List" <users@tomcat.apache.org>
>
> Message-ID:
> <[EMAIL PROTECTED]>
> MIME-Version:
> 1.0
> Content-Type:
> multipart/alternative; boundary="----=_Part_9753_29317241.1143546950185"
>
>
>I use request.getUserPrincipal().getName() to get the username, does it work
>for you?
>
>Never quite understood what this getRemoteUser method was... if someone
>knows, I'm interested!
>
>On 28/03/06, Dave <[EMAIL PROTECTED]> wrote:
>  
>
>>I am using JBoss. The servlet Form authentication is nice, but I need
>>something more flexible.
>>
>>  Users are allowed to login on any unprotected page and stay in the same
>>page after lgoin.  I have database table to store username and password.
>>
>>  After verifying username and password, what information needs to put
>>into session(or other data structure) so that:
>>      HttpServletRequest.getRemoteUser() will return the remote user.
>>
>>  Thanks!
>>
>>
>>---------------------------------
>>Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
>>countries) for 2ยข/min or less.
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to