tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: mod_jk / getRemoteUser()
Date Wed, 15 May 2002 15:11:57 GMT
Hello Fritz,

You need to set tomcatAuthentication="false" on your ajp13 connector
config in server.xml (if not present, it defaults to true)...

<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0" tomcatAuthentication="false"/>


Wednesday, May 15, 2002, 8:28:18 AM, you wrote:

FLG> Hello all,

FLG> Problem getting apache httpd-server login name from a Servlet:

FLG> I'm having a "cocoon-in-Tomcat-in-Apache" Installation where
FLG> - my Apache httpServer is equipped with a user authentication by
FLG>     htpasswd -c $APACHE_HOME/passwd/password username
FLG>    (seems to work properly - my apache access_log shows usernames)
FLG> and
FLG> - the httpd-Tomcat connection is via mod_jk
FLG>    (seems to work properly)
FLG> - I'm doing a regular HTTP/1.1 Request

FLG> Now I try to resolve the (httpd-)username inside my Servlet by calling

FLG> ((HttpRequest)request).getRemoteUser();

FLG> That returns NULL !
FLG> (actually my cocoon core.log says explicitely so: REMOTE USER: null)
FLG> - Why ?
FLG> In other words:
FLG> Am I right, assuming that my Apache httpd-server cuts off the username
FLG> from the Request before passing it to Tomcat and
FLG> how can I teach it (or mod_jk) to refrain from doing so ?

FLG> Thanks for reading this, greetings - Fritz

FLG> --
FLG> To unsubscribe, e-mail:   <>
FLG> For additional commands, e-mail: <>

Best regards,

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message