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:
- integrated+windows+authentication
- integrated+windows+authentication+cgi
- python+integrated+windows+authentication
- python REMOTE_USER
[tags]Python, CGI, Python CGI, REMOTE_USER, IWA, NTLM, Python IWA, Python NTLM, Python Authentication, Python IIS, IIS 5.1[/tags]
domainnames domainnames