Tomcat Connector problem

drehg

Member
Hi -

This is in response to an issue I am having with the Tomcat connector. I used the process described at Configuring JSP for IIS The NeoSmart Files to set up my IIS - Tomcat environment, and have had no issues, other than I cannot get the remote user to populate. Everything else works as it should. But the big thing I need, the authenticated user, is missing. Ouch!

When I set this up the connection with IIS 5 (on a different machine) remote user populated with out issue.

My isapi_redirect.properties file is here:
Code:
# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll

# Full path to the log file for the ISAPI Redirector
log_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs\isapi_redirect.log

# Log level (debug, info, warn, error or trace)
log_level=info

# Full path to the workers.properties file
worker_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\workers.properties

# Full path to the uriworkermap.properties file
worker_mount_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\uriworkermap.properties

My workers.properties is here:
Code:
workers.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 6.0\

# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
C:\Program Files\Java\jdk1.6.0_14\

# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\

# The workers that your plugins should create and work with
#
worker.list=neosmart

#------ DEFAULT ajp13 WORKER DEFINITION ------------------------------
#---------------------------------------------------------------------
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.neosmart.port=9009
worker.neosmart.host=localhost
worker.neosmart.type=ajp13

The request headers I get back are here:
Code:
accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
accept-encoding: gzip,deflate
accept-language: en-US,en;q=0.8
authorization: NTLM TlRMTVNTU ... (trimmed for length)
connection: keep-alive
content-length: 0
cookie: JSESSIONID=C39522B97121331A95A7EB52B64F47A1
host: engweb2
tomcatworkeridx6a6b0000: 0
user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) (Trimmed for length)

Any suggestions are appreciated.
 
Update -
I am obviously going senile. I went through the same issue when I set up the IIS 5 server... but forgot to refer to those notes. It is something that would be worth adding to the tutorial...

To have the remote_user passed in, in the line that defines the ajp connector in server.xml,
Code:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
you need to add the attribute tomcatAuthentication = false
Code:
Connector port="8009" protocol="AJP/1.3" tomcatAuthentication="false" redirectPort="8443"/>
 
Back
Top