locked
How Can I Access ActiveDirectory With ADO.NET RRS feed

  • Question

  • In Ado.net I use the sql below to query users

    @"select name, ADsPath from
    'LDAP:ou=aaa,ou=bbb,dc=xxx,dc=com' where objectClass = 'user'"

    The result is all users under OU aaa and the sub ou, It's a deep query. I just want to get the user under aaa.(a onelevel query).

    What should I do?


    十步杀一人,千里不留行
    Monday, February 21, 2011 7:40 AM

Answers