Results 1 to 4 of 4

Thread: Security

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    3

    Talking

    I am developing a DLL that will find the User Name of the person logged on to a computer and do some other verification before allowing the user to move on. This DLL work's perfectly from a local machine, but when installed on the server and used with a ASP page, it can not find the name of the user who's activating this ASP page.

    How can I find the User Name of the person who's clicking the ASP page????
    Curry :-)

  2. #2
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    Try using in asp file

    <%=Request.servervariables("LOGON_USER") %>

    Chers
    Harsoni

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    That's because the user has to be running NT or 2000.

    I don't know how you are getting this info with the dll but your dll on the server will not be able to get at this info.

    Your best bet is to create a login page.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    If you want to get the NT User name on an ASP page via the LOGON_USER parameter, you must disable anonymous access to your directory. This will force authentication to occur and allow you to get the NT name.

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