You only get the remote user if the web server sends it.
If you are using IIS, make sure you have it set to NOT allow anonymous
access. This will cause it to send the NT Challenge needed to get the
username.
-----Original Message-----
From: Daniel A. Theobald [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 10:01 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Determining NT login name
We are developing an intranet application to be deployed on a windows
network. One of the requirements is that the user should not be
required to login to the website, that their windows login should be
sufficient.
Does anyone know how to determine the windows username of the remote
user in a servlet? I know there is some way to do it using ASP, but I
would rather do this all in java if possible.
javax.servlet.http.HttpServletRequest.getRemoteUser always seems to
return null. I guess we will need to make some auto authentication or
something. Ideas?
thanks in advance,
theo