IIS – Python – Get the Name of the Logged On User (on IWA,NTLM)

If your question is how to find out the username and/or domain of a user logged onto your web site protected with integrated windows authentication, then in Python the answer is:

os.environ['REMOTE_USER']

Other Languages?

Since IIS 5.1 is putting this as an environment variable available to my script, I’d imagine this is standard for any CGI based language. Just do a search for [Your Language] + REMOTE_USER

My Search Queries:

  1. integrated+windows+authentication
  2. integrated+windows+authentication+cgi
  3. python+integrated+windows+authentication
  4. python REMOTE_USER

[tags]Python, CGI, Python CGI, REMOTE_USER, IWA, NTLM, Python IWA, Python NTLM, Python Authentication, Python IIS, IIS 5.1[/tags]

One Response to “IIS – Python – Get the Name of the Logged On User (on IWA,NTLM)”

  1. domainnames says:

    domainnames domainnames