Click to See Complete Forum and Search --> : Get NT user name from Apache Webserver


verifier
March 23rd, 2006, 11:28 AM
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

olivthill
March 24th, 2006, 09:35 AM
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.

verifier
March 24th, 2006, 03:25 PM
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.