Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identify NT login name from JSP

Status
Not open for further replies.

Jay1Roy

Programmer
Jul 10, 2001
95
IE
Hi,

For tightening the security, I wanted to know how can I get the NT user login name in my JSP?? any other suggestion on doing this is welcome.

Thanks,

Jayanta
user.gif
 
You can't, unless they enter it. Imagine being able to get that type of client information over any web page, can't be done.

You can setup security in most web servers to use NT authentication. In this case, the web server would pop up a login dialog and authenticate the user for you without extra code. Then once the user is authenticated, you could retrieve their username from the HttpServletRequest Object using the getRemoteUser() method. Check the Javadocs for more information. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top