CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Location
    Sweden
    Posts
    467

    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
    "The making of software, like the making of sausages, should never be watched."

    http://blog.gauffin.org - .NET Coding/Architecture

  2. #2
    Join Date
    Jun 2005
    Posts
    1,255

    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.

  3. #3
    Join Date
    Jun 2002
    Location
    Sweden
    Posts
    467

    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.
    "The making of software, like the making of sausages, should never be watched."

    http://blog.gauffin.org - .NET Coding/Architecture

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured