Query Active Directory from ASP.NET

Discussion in 'ASP .Net' started by Andrew Connell, Jan 16, 2004.

  1. I have a case where I need to be able to query Active Directory to
    look up a user by their WINNT:\\DOMAIN\USERACCOUNT. The site is
    authenticating the users (it's a CMS site and they must be
    authenticated). I have Integrated Authentication & Anon access
    checked in IIS. I also have the following in my web.config:
    <authentication mode="Windows" />
    <identity impersonate="true" />
    <trust level="Full" originUrl="" />

    However, after building the solution, when I try to create it, I get
    the following: "The specified directory service attribute or value
    does not exist"

    I've copied the lookup code verbatum into a console app and run it
    from the same server and it works perfectly (for the same user
    lookup)... any ideas why I'm getting this error? It looks security
    related, but I'm having a hard time getting the user it's running as
    out into my debug info.

    Ideas? Thanks in advance.
     
    Andrew Connell, Jan 16, 2004
    #1
    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. Marty Underwood

    Active Directory using LDAP query

    Marty Underwood, Nov 27, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    620
    Marty Underwood
    Nov 27, 2003
  2. Jim Adams
    Replies:
    1
    Views:
    3,701
    Tim Heuer
    Jan 7, 2004
  3. Arvind P Rangan

    Active Directory Query

    Arvind P Rangan, Feb 24, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    477
    Martin Dechev
    Feb 24, 2004
  4. =?Utf-8?B?VGFzaA==?=

    active directory query using directorysearcher

    =?Utf-8?B?VGFzaA==?=, Jul 19, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    719
    =?Utf-8?B?RWx0b24gVw==?=
    Jul 19, 2005
  5. JavaNinna72

    STRUTS & Active Directory Query

    JavaNinna72, Dec 14, 2004, in forum: Java
    Replies:
    0
    Views:
    1,010
    JavaNinna72
    Dec 14, 2004
Loading...

Share This Page