On FC6 (intel), I need to have tomcat servlets know the user
associated with each ajp request.
After authenticating (I'm using mod_cosign), when I load https://host/
cgi-bin/hi (a shell script which outputs html-ized "Hello
$REMOTE_USER" the web-page returned is "Hello <user>" for whatever
user I authenticated as.
I've got mod_proxy_ajp set-up to:
ProxyPass /HelloWorld ajp://locahost:8009/HelloWorld
Since I have the entire host set-up to be cosign-authenticated,
accessing:
https://host/HelloWorld/HelloWorld
causes cosign to force authentication (iff I haven't already). Then
the request gets passed via mod_proxy_ajp
to tomcat (running on the same host on port 8009). HelloWorld
happily executes, but all the ways that I've coded that I thought
would receive the connection user... haven't.
Since I'm very much a beginner Java person, I've tried googling and
FAQ'ing around but ended up following numerous dead ends. I've read
over the mod_proxy_ajp source and from ajp_header.c it certainly
seems like "user" is always provided to tomcat as long as user is set
for the connection (on the apache side).
I'd really appreciate any tips on how to access this from a servlet
running under Tomcat. Or any tips that would enable me to at least
prove to myself that tomcat received it from mod_proxy_ajp (like how
to tinker with tomcat logging).
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]