User Authentication Thru LDAP MS Active Directory

Discussion in 'ASP .Net Security' started by Thana, Sep 29, 2006.

  1. Thana

    Thana Guest

    Hi ,

    I am creating a user login page using ASP.NET 2.0 in C# to authenticate users thru LDAP MS Active Directory. Can anyone provide a sample in C# code for the user authentication ?. Thanks !.
     
    Thana, Sep 29, 2006
    #1
    1. Advertising

  2. Thana

    Joe Kaplan Guest

    Why don't you use the ActiveDirectoryMembershipProvider? That's what it is
    there for.

    Ideally, you wouldn't use LDAP auth at all and would use IIS/Windows auth,
    as LDAP auth is always a compromise, but you may not have a choice here.

    Joe K.

    --
    Joe Kaplan-MS MVP Directory Services Programming
    Co-author of "The .NET Developer's Guide to Directory Services Programming"
    http://www.directoryprogramming.net
    --
    <Thana> wrote in message news:...
    > Hi ,
    >
    > I am creating a user login page using ASP.NET 2.0 in C# to authenticate
    > users thru LDAP MS Active Directory. Can anyone provide a sample in C#
    > code for the user authentication ?. Thanks !.
     
    Joe Kaplan, Sep 29, 2006
    #2
    1. Advertising

  3. As Joe adviced..
    Go to IIS >Website or Virtual Directory>Disable Anonyumous Access and enable
    integrated Windows and add ur Active Directory and thats it
    Patrick

    <Thana> wrote in message news:...
    > Hi ,
    >
    > I am creating a user login page using ASP.NET 2.0 in C# to authenticate
    > users thru LDAP MS Active Directory. Can anyone provide a sample in C#
    > code for the user authentication ?. Thanks !.
     
    Patrick.O.Ige, Oct 3, 2006
    #3
    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. Tdar
    Replies:
    2
    Views:
    8,956
    Arnel
    Oct 11, 2005
  2. P Webster
    Replies:
    2
    Views:
    11,109
    P Webster
    Mar 25, 2006
  3. Ken Dourado

    Active Directory, LDAP and Forms Authentication Problem

    Ken Dourado, Nov 10, 2003, in forum: ASP .Net Security
    Replies:
    0
    Views:
    208
    Ken Dourado
    Nov 10, 2003
  4. Tdar
    Replies:
    1
    Views:
    208
    Steven Cheng[MSFT]
    Sep 30, 2005
  5. hharry

    active directory authentication using ldap

    hharry, Nov 9, 2007, in forum: ASP .Net Security
    Replies:
    1
    Views:
    245
    Joe Kaplan
    Nov 9, 2007
Loading...

Share This Page