How does one go about authenticating so that getRemoteUser() does not return null?
Author: Joachim Aschoff (http://www.jguru.com/guru/viewbio.jsp?EID=904224), Jun 5, 2002If you use Tomcat with IIS as web server, it is possible to get the login name of the client by using getRemoteUser, if the client is running windows. In the IIS management console, go to the properties of the virtual directory “jakarta”, select the security tab and press edit. Uncheck anonymous access and check integrated windows authentification. (How to configure IIS with tomcat is described somewhere else …). Calling getRemoteUser now returns the clients windows login name.