**********************************************************************
Este email assim como os ficheiros que possa ter em anexo s�o confidenciais
e para uso exclusivo da pessoa ou organiza��o para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
n�o tendo sido encontrados virus.

www.mimesweeper.com
***********************************************************************

Hi, Wangyue thanks for answer this question...because I have the same
problem..but using a servlet.
I need on a servlet, get the username.

What you answer applies to servlet's too?

In what part of the HTTPD.conf I have to insert this lines.

Thanks

-----Original Message-----
From: wangyue [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 28 de Maio de 2003 8:22
To: 'Tomcat Users List'
Subject: RE: Can't get CGI var REMOTE_USER via req.getRemoteUser()

Try the following:

(1)  add "JkEnvSet REMOTE_USER %{REMOTE_USER}" to httpd.conf
(2)  get REMOTE_USER via req.getAttribute("REMOTE_USER")



> -----Original Message-----
> From: Lopez David E-r9374c [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, May 17, 2003 3:10 AM
> To: Tomcat List (E-mail)
> Subject: Can't get CGI var REMOTE_USER via req.getRemoteUser()
> 
> 
> Tomcat developers
> 
> Apache 1.3.26 using AuthType Basic
> Tomcat 4.1.18 using jk
> 
> The following statement worked 3.x, but not 4.1.18
> 
>   String REMOTE_USER = req.getRemoteUser();
> 
> The value returned is always "null" which indicates 
> a non-autheticated user. However, apache correctly 
> gives me a login screen. 
> 
> This application was recently ported to 4.1.18.
> 
> Anyone have any ideas as to where to look?
> 
> David
> 
> PS req is a reference to HttpServletRequest.
> 
> ---
> David E Lopez
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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

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

Reply via email to