Ah, OK, that completes the picture. I checked in tomcat code, that the
forwarded info is being used, but I saw, that only if some boolean flag
is not set. I didn't have the time to check where that flag comes from,
but your last post perfectly fits. So having that to false enables one
to read the user forwarded by mod_jk in the default servlet way without
using additional env vars.
David Smith wrote:
I've fixed getting user info from apache by adding
tomcatAuthentication="false" to the connector config in server.xml.
--David
Peter Neu wrote:
Hello,
yeah, I thought of this too. But I only get a null value for
request.getRemoteUser(). Any idea what could be wrong? My mod_jk
version is mod_jk 1.2.19.
Cheers,
Pete
-----Ursprüngliche Nachricht-----
Von: Christopher Schultz [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 19. April 2007 18:28
An: Tomcat Users List
Betreff: Re: HowTo forward user name from apache via mod_jk to tomcat
Rainer,
Rainer Jung wrote:
In this case, why not simply use (mini test jsp):
User: <%=request.getRemoteUser()%>
Oh, hey, that's a lot better. No config or anything ;) I didn't realize
that REMOTE_USER was already being forwarded without further
configuration.
Thanks for the clarification.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]