Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does one go about authenticating so that getRemoteUser() does not return null?

0
Posted

How does one go about authenticating so that getRemoteUser() does not return null?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123