Win NT User List - Help

Results 1 to 4 of 4

Thread: Win NT User List - Help

  1. #1
    Pritam Pal Guest

    Default Win NT User List - Help

    Is there any method of checking the login name of a user in an ASP with win NT user list ?

  2. #2
    Bill Branthoover Guest

    Default RE: Win NT User List - Help

    One method I&#039ve been using is in the Global Asa I have the following line: <BR>Session("UserID")=Request.ServerVariables("LOG ON_USER") <BR>Then later in my ASP code I check the value of <BR>Session("UserID")<BR>I hope this helps you. Bill

  3. #3
    keithadler@hotmail.com Guest

    Default RE: Win NT User List - Help

    The problem with the method he mentioned is that it won&#039t work if you&#039re using anonymous authentication on your website. This will only work if you&#039re using basic text or challenge and response.

  4. #4
    Shano Guest

    Default RE: Win NT User List - Help

    As stated... If you use anonymous authentication then you could request server variables all day and come up with a blank. If you&#039re on an Intranet using only IE, you could turn off the anonymous authentication to force an NT Challenge/Response. If you have to keep anonymous up then you&#039ll have to get a little creative... <BR><BR>Something like creating an ActiveX object on the server that your page could call that could look it up for you...But wait, security may be an issue so you may have to have an ActiveX object that interrogates an NT service that you create that uses an admin level user to be able to query the appropriate APIs (Lan Manager in the Network Management SDK I think) to verify the correctness of a user name. You could call the NetUserGetInfo api call which would return a structure if successful or an NERR_UserNotFound error.<BR><BR>Didn&#039t there used to be (or maybe still is) a way (a hack) to try to force an NT logon with anything and NT would send back a valid list of user logins?<BR><BR>Still... the easy way is to turn off anonymous authentication if it&#039s an option.<BR><BR>Have fun!


Posting Permissions

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