tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto A C A S Magalhães <alberto.magalh...@bnc.pt>
Subject RE: Can't get CGI var REMOTE_USER via req.getRemoteUser()
Date Wed, 28 May 2003 08:10:39 GMT
**********************************************************************
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 Redes@bnc.pt

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:wangyue@yamaguchi-u.ac.jp] 
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:r9374c@motorola.com] 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



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

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


Mime
View raw message