Jump to content

Get windows domain name


VelvetMirror

Recommended Posts

I need to get the Windows domain name from Internet Explorer using classic asp (I could try it in another way if with classic asp it's not possible).I need to do this in order to insert the domain name into a database row.So again, in summary, I need to retrieve the Windows computer domain name from the Internet Explorer that is accessing to a particular webpage.It seems the link you provided talks about retrieving information from an URL, but I don't want to do that. I hope I explained myself better this time, thanks anyway.

Link to comment
Share on other sites

In that case, it's not possible for javascript to access the local file system, and I don't think the browser maintains any of that information, except for the OS type the browser is running on.

Link to comment
Share on other sites

In case anyone happens to get the same problem, here is the solution I've implemented. You have to activate Integrated Windows Authentication in IIS: http://en.wikipedia.org/wiki/Integrated_Wi..._Authentication.You can read here how to do it: http://www.microsoft.com/technet/prodtechn...e.mspx?mfr=trueAfter that you can use:

In Classic ASP Request.ServerVariables ("AUTH_USER") or Request.ServerVariables ("LOGON_USER")
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...