You should be able to get it via request.getRemoteUser(). However, note that when using the JK connectors, you will have to tell Tomcat whether it should get the remote user from the JK environment or from within Tomcat. When using Tomcat with Apache, that is done via adding the following to the jk2.properties file...
request.tomcatAuthentication=false
I believe this will also work for the IIS connector.
See this resolved bug for details...http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12196
Jake
At 02:50 PM 3/24/2003 -0800, you wrote:
Hi,
I have searched the archives and have not managed to find a decent answer for this. The users of an intranet are already logged into the windows domain. I need to retrieve the currently logged in user name from my java web application.
1) I am integrating IIS and tomcat using the isapi redirector. 2) using IIS 5.0 and Windows 2000 Server 3) I have set the IIS security to NT Authentication.
The response variable that gets set is
"authenticate"
with a value of
TlRMTVNTUAADAAAAGAAYAFgAAAAYABgAcAAAAAgACABAAAAACAAIAEgAAAAIAAgAUAAAAAAAAACI AAAABYKAoFMATwBMAE8ASABhAG4AcwBTAE8ATABPAOgkx0G8QbgJhRZRc0xo40R8cUWsA6X0SQ9M cj7FIOa2dRLjARCYlxSI3eGrqD12jW
I assume this is some kind of base 64 encoded token which i need to use to get the user details from the windows 2000 active directory???
Has anyone got any idea how I retrieve the logged in username.
Thanks
Hans
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]