Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Get logon user information on J2EE application

0

52 views

I'm working with J2EE application and my web application has to recognize the user without authenticate using the windows logon user info.

When I create a web applciation with VB.NET I used something like that:

Session("Login") = Mid(Request.ServerVariables("LOGON_USER"), Request.ServerVariables("LOGON_USER").IndexOf("\") + 2)

Do you know if it's possible to do the same on Java / Spring / Tomcat webapplication?

tnx,
Andrea

asked June 24, 2011 11:26 am CDT
posted via StackOverflow

1 Answer

0
 

You can use HttpServletRequest.getRemoteUser().

Note that you will need to add some sort of authentication to Tomcat. For example, if you are trying to do NTLM authentication, you can use Waffle.

answered June 24, 2011 12:27 pm CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions