Jump to content

Get windows domain name


VelvetMirror
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...