You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lopez David E-r9374c <r9...@motorola.com> on 2003/05/16 20:09:50 UTC
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
RE: Can't get CGI var REMOTE_USER via req.getRemoteUser()
Posted by wangyue <wa...@yamaguchi-u.ac.jp>.
I'm sorry.
"JkEnvSet" should be "JkEnvVar".
> -----Original Message-----
> From: wangyue [mailto:wangyue@yamaguchi-u.ac.jp]
> Sent: Wednesday, May 28, 2003 4:22 PM
> 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
RE: Can't get CGI var REMOTE_USER via req.getRemoteUser()
Posted by wangyue <wa...@yamaguchi-u.ac.jp>.
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