How Can I Access ActiveDirectory With ADO.NET
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?,
February 21st, 2011 2:42am
This is a SQL Server SSIS forum and your question is really LDAP.
I this this may help -
http://www.freevbcode.com/ShowCode.Asp?ID=611Arthur My Blog
Free Windows Admin Tool Kit Click here and download it now
February 21st, 2011 10:26pm