Take the 2-minute tour ×

I need to iterate programatically through all items in a specific OU in an active directory tree (C#). For that I have a configuration that specifies which OU to iterate. This works ok.

However my client now wants to iterate through all items in the AD tree. How could I specify a path which contains all OUs in the AD tree so that my application will iterate through all of them?


share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can specify only domain components. E.g.: LDAP://DC=Fabrikam,DC=COM

Read more: Distinguished Names

share|improve this answer
add comment

Your Answer


