Retrieving NT username from a JSP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Maria_McCoole
Posted On:   Thursday, March 3, 2005 08:45 AM


How can I retrieve the nt username of the user on a JSP page?

I would like to use NT to authenticate the user, is there an easy way to do this?


Thanks

Re: Retrieving NT username from a JSP

Posted By:   piyush_nahata  
Posted On:   Thursday, March 17, 2005 12:43 AM



You can try the following code


var WshNetwork = new ActiveXObject("WScript.Network");

var strUserId = WshNetwork.username;


Put this in a javascript and the variable strUserId will now hold the nt user name

About | Sitemap | Contact