Get the NT logon user?

Discussion in 'ASP .Net Security' started by les, Aug 8, 2003.

  1. les

    les Guest

    Having come from old ASP I usually have a table of authorised NT login
    names which I put into a recordset. I then get the current users login
    name using: Request.ServerVariables("LOGON_USER")
    Then I check if the user's login name is in the recordset and redirect
    as appropriate.

    1) How would I go about doing this in asp.net?
    2) Is it necessary to deny access to anonymous users in IIS6 before I
    can get the LOGON_USER?
    3) Do I have to use windows or forms authentication?

    Thanks
    Leslie
    les, Aug 8, 2003
    #1
    1. Advertising

  2. You will have to deny anonymous access and use Windows authentication.

    --
    Naveen K Kohli
    http://www.netomatix.com
    "les" <> wrote in message
    news:...
    > Having come from old ASP I usually have a table of authorised NT login
    > names which I put into a recordset. I then get the current users login
    > name using: Request.ServerVariables("LOGON_USER")
    > Then I check if the user's login name is in the recordset and redirect
    > as appropriate.
    >
    > 1) How would I go about doing this in asp.net?
    > 2) Is it necessary to deny access to anonymous users in IIS6 before I
    > can get the LOGON_USER?
    > 3) Do I have to use windows or forms authentication?
    >
    > Thanks
    > Leslie
    Naveen K Kohli, Aug 12, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Dopierala Jr.

    Re: How to get Windows logon user credential?

    Ken Dopierala Jr., Aug 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    4,424
    cindy liu
    Aug 28, 2003
  2. venkat

    Retrieve logon user name from ADSI

    venkat, Nov 6, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    457
    venkat
    Nov 6, 2003
  3. armandotop
    Replies:
    2
    Views:
    384
    Peter Jansson
    Apr 13, 2005
  4. Molly_K
    Replies:
    0
    Views:
    506
    Molly_K
    Aug 10, 2006
  5. Kjell Kristiansson
    Replies:
    0
    Views:
    284
    Kjell Kristiansson
    Nov 30, 2005
Loading...

Share This Page