tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: getRemoteUser null
Date Mon, 05 Jan 2004 23:22:38 GMT

You have to tell Tomcat whether to get BASIC Auth remote user information from 
the connector (Apache) or from Tomcat itself.  See the following for details...

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12196

Jake

Quoting Howard Watson <howardw@esgw.org>:

> Additional Info:
> 
> Enumerate HeaderNames
> ===============
> host : myServer:port
> user-agent : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5)
> Gecko/20031007 Firebird/0.7
> accept :
> 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,
video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
> accept-language : en-us,en;q=0.5
> accept-encoding : gzip,deflate
> accept-charset : ISO-8859-1,utf-8;q=0.7,*;q=0.7
> keep-alive : 300
> connection : keep-alive
> cookie : JSESSIONID=8E46392BD10C29E8DCF62E608D81DF5F
> authorization : Basic aG93YXJkdzphdXRoZW50aWNhdGVtZQ==
> cache-control : max-age=0
> content-length : 0
> =============
> End Request Headers
> 
> request.getAuthType() returns null
> request.getRemoteUser() returns null
> 
> End Additional Info
> 
> >>> howardw@esgw.org 12/31/03 12:03PM >>>
> Original message reformatted to match message posted at ApacheUser.
> 
> Porting web application from Apache1.3/Tomcat3.3.
> Before stumbling on this partial fix all my JSPs and servlets returned
> getRemoteUser null. This fix works for JSPs but doesn't help much for
> servlets.
> 
> Apache2.0.48
> Tomcat4.1.29
> mod_jk1.2.5
> jvm1.4.1_02a
> 
> Does anyone have any idea why a JSP referenced by name in a url would return
> getRemoteUser = null and the same JSP referenced through DirectoryIndex in
> Apache2 would return getRemoteUser = expected user name.
> 
> Example:
> http://serverAddr/DisplayUser.jsp returns null
> 
> In Apache conf
> DirectoryIndex DisplayUser.jsp
> 
> http://serverAddr/ returns DisplayUser.jsp with user name
> 
> 
> ---------------------------------------------------------------------
> 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