fully automatic ldap authentication

Discussion in 'ASP .Net' started by steven, Mar 14, 2008.

  1. steven

    steven Guest

    is it possible to do fully automated ldap authentication to a web app?
    i know there's a login control i can use to ask for the username/
    password which can then authenticate the user against AD, but what if
    they're already logged into AD? is it really necessary to ask them to
    login to my web app?

    tks in advance.
     
    steven, Mar 14, 2008
    #1
    1. Advertising

  2. If your application and IIS are setup for NTML authentication, then no, it's
    not necessary. The User.Identity.Name will return the Domain\username of
    the user and you can use User.Identity.IsAuthenticate as a boolean to test
    whether or not the user is authenticated.

    If, from there, you need information from Active Directory (display name,
    etc), the DirectoryServices namespace allows you to take that Identity.Name
    and query up AD information (http://msdn2.microsoft.com/en-us/library/system.directoryservices.aspx).

    From there, authentication is now taken care of and authorization is left
    up to you and how you implement security in your application.

    HTH.

    -dl

    --
    David R. Longnecker
    http://blog.tiredstudent.com

    > is it possible to do fully automated ldap authentication to a web app?
    > i know there's a login control i can use to ask for the username/
    > password which can then authenticate the user against AD, but what if
    > they're already logged into AD? is it really necessary to ask them to
    > login to my web app?
    >
    > tks in advance.
    >
     
    David R. Longnecker, Mar 14, 2008
    #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. Guest
    Replies:
    1
    Views:
    779
    Guest
    Jun 29, 2004
  2. Replies:
    1
    Views:
    548
    Raymond DeCampo
    Feb 21, 2006
  3. rcmn
    Replies:
    1
    Views:
    364
    =?ISO-8859-1?Q?Michael_Str=F6der?=
    Nov 6, 2006
  4. Jason Wold

    using LDAP Controls in ruby-ldap

    Jason Wold, Nov 4, 2004, in forum: Ruby
    Replies:
    5
    Views:
    274
  5. Replies:
    1
    Views:
    109
    Eric Hodel
    Nov 11, 2005
Loading...

Share This Page