I found a workaround to this problem thanks to a user on another forum. I was doing auth in the <Directory /> directive, which is reasonable since I want my entire site password protected. Doing auth this way, getRemoteUser() returns a null. If I add auth to a <Location /webapp> directive (which should be redundant), getRemoteUser() returns the apache authenticated user id. Maybe I am misundertanding the apache httpd directives, but it seems <Directory /> only should work ok...
It seems redundant and wrong to have to have auth information in <Location /webapp> as well as <Directory /> to get the apache authenticated user id, but it works. Apache 1.3.x and mod_jk did not have this problem, i.e. auth in <Directory /> alone gave me the correct return from getRemoteUser(). Lloyd On Wed, 2004-04-21 at 09:36, Lloyd H. Meinholz wrote: > I am trying to get apache 2.0.49, tomcat 4.1.30 (or 5.0.19), mod_jk2 > 2.0.4 and getRemoteUser() to work. > > After going through the mail archives and bugzilla, I have tried the > following: > > adding request.tomcatAuthentication=false to jk2.properties > adding tomcatAuthentication="false" to my connector in server.xml > > neither of these gave me a non-null remoteUser from HttpServletRequest. > > This is pretty easy to test because the Remote User from the snoop.jsp > examples returns null. > > I do not have this problem with apache 1.3.x and mod_jk, but I would > really like to use apache 2 and mod_jk2... > > Is there something I have missed in my configuration or is this a bug? > Entries in bugzilla seem to think this was solved (entries from 2002 and > 2003). Should I open a new bug? > > Thanks for any help, I've spent several days on this and am getting > frustrated. > > Lloyd > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
