Get NT user name from Apache Webserver
Hello
How can I get the NT username from a Apache WebServer running on win32?
I've found the following two modules:
http://rc.vintela.com/topics/apache/mod_auth_vas/
http://technologists.com/mod_auth++/mod_auth++.html
But they only have binaries for linux, i need binaries for win32.
Thanks,
Jonas
Re: Get NT user name from Apache Webserver
Do you want the name of the user on the client station or on the server ?
The username of the client station cannot be obtained, unless it is passed to the server as an argument in a request.
The username of the server station will be the one that was used for launching Apache, which is rarely interesting. Anyway, sometimes, there is an environment variable holding it. Open a console window, and type "Set" in order to view all the environment variables. One of them might the one you are looking for.
Re: Get NT user name from Apache Webserver
I want the user name of the client. The two modules that I mentioned can fetch the user name of the client. IIS does this if "Integrate windows authentication" is checked.