Hello Kevin,

You need to add tomcatAuthentication="false" to your jk connector
definition in server.xml.

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

Note that tomcatAuthentication does not seem to be implemented
properly in Coyote.  For instace, the analog to the above connection
for Coyote would be the following which currently doesn't work
(getRemoteUser() returns null):

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8009" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" tomcatAuthentication="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

Let me qualify that. It doesn't work when using mod_jk.  I haven't
gotten thing to work using mod_jk2, so it may work in that case, but
it should work in both.


To Tomcat Developers...

Is there another way that Coyote implemented to grab the auth info
from Apache?


Jake


Monday, July 22, 2002, 12:55:31 PM, you wrote:

KA> I just converted over from Tomcat 3.2.X to Tomcat 4.0.4 on Linux using
KA> Apache 1.3.26. In the Apache httpd.conf file, we have an Alias that points
KA> to a directory that uses Apache's authentication. In Tomcat 3.2.X, I used
KA> mod_jserv which integrated well and I could get the remote user and use
KA> Apache to authenticate. I was wondering how I could use mod_jk to do the
KA> same. Right now, when I do a getRemoteUser() it returns null.

KA> Thanks,
KA> Kevin

KA> Kevin Andryc
KA> Web Systems Engineer
KA> MISER
KA> http://www.umass.edu/miser/
KA> Phone: (413)-545-3460
KA> [EMAIL PROTECTED]





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



-- 
Best regards,
 Jacob                            mailto:[EMAIL PROTECTED]


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

Reply via email to