User login with ADSI

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default User login with ADSI

    Hi,
    Under ASP I was able to use code like that listed below to confirm login
    details on our intranet site. I wish to upgrade our site to run purely under
    ASP.NET. I am having trouble converting this code to ASP.NET code somebody
    point me in the right direction with some sample code like this done in
    ASP.NET

    set ADSI = GetObject("WinNT:")
    set IIS = ADSI.OpenDSObject("WinNT://MyDomain/" & Request.Form("UserName") ,
    Request.Form("UserName"), Request.Form("Password"),
    ADS_SECURE_AUTHENTICATION)
    IF err.Number = 0 THEN
    Response.Cookies("UserName") = Request.Form("UserName")
    Response.Cookies("UserName").Expires = "July 1, 2020"
    End If

    Thanks



    Kenneth Keeley Guest

  2. Similar Questions and Discussions

    1. Login User from Novell Login
      Hi, At present a user loggin onto our netwok enters their username and password by a Novell Login prompt. When they fire up their browser they...
    2. user and admin login on same login page
      Hello, I have a user login page which also doubles as my administrator login. Currently, my method of logging in doesnt seem to be working...
    3. Login User User Error 80040e21
      I am getting an 80040e21 error using the log in user server behavior. The complete error message is Microsoft OLE DB Provider for SQL Server...
    4. Domain Login - One User Can/Another User Cannot from same Win XP computer
      Okay ... I'm confused. I installed a brand new computer and everything was working fine. I was then advised who would be getting the computer,...
    5. User changing something on a form makes asp.net take user to login page
      Hi, I have an application that displays the database table records on the web page, the user can navigate thru the contents and make changes and...
  3. #2

    Default RE: User login with ADSI

    The ADSI managed objects are in the System.DirectoryServices namespace.
    There is a good article on authenticating in ASP.NET against active
    directory here:

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht[/url]
    ml/SecNetHT02.asp

    Chris Marchal
    Microsoft UK Developer Support
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Chris Marchal[MSFT] Guest

  4. #3

    Default Re: User login with ADSI

    That Article is as useful as tits on a bull. It might be fine if you are
    some sort of Microsoft super dickhead but if you are simple person how is
    just tring to make a living in the real world then I find it useless and a
    waste of my time. Not every body in the world has millions of dollors to was
    on all the bullshit CD's that microsoft generate so that you can create a
    web page that should only need 20+ lines of code. So how about provideing an
    example in simple easy to follow code.

    "Chris Marchal[MSFT]" <cmarchal@online.microsoft.com> wrote in message
    news:QyheVmXyDHA.2896@cpmsftngxa07.phx.gbl...
    > The ADSI managed objects are in the System.DirectoryServices namespace.
    > There is a good article on authenticating in ASP.NET against active
    > directory here:
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht[/url]
    > ml/SecNetHT02.asp
    >
    > Chris Marchal
    > Microsoft UK Developer Support
    > This posting is provided "AS IS" with no warranties, and confers no
    rights.
    >

    Kenneth Keeley Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139