DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12196>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

request.getRemoteUser() returns null for AJP request with remote username





------- Additional Comments From [EMAIL PROTECTED]  2002-09-08 06:19 -------
The problem contintues to exist in Tomcat 4.1.10. The diff below fixes the 
problem (fix to org.apache.coyote.tomcat4.CoyoteRequest.getRemoteUser). I've 
also tested with Apache, as opposed to IIS.

NB in CATALINA_HOME/conf/jk2.properties the property 
request.tomcatAuthentication must be set to false. i.e.

request.tomcatAuthentication=false

====

diff CoyoteRequest.java CoyoteRequest.java.orig

1623c1623,1629
<         return coyoteRequest.getRemoteUser().toString();
---
>
>         if (userPrincipal != null) {
>             return (userPrincipal.getName());
>         } else {
>             return (null);
>         }
>

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

Reply via email to