Chapter 13 - Working with the Active Directory | |
bySimon Robinsonet al. | |
Wrox Press 2002 | |
In this chapter we've seen the architecture of the Active Directory: the important concepts of domains, trees, and forests. We can access information in the complete enterprise. Writing applications that access the Active Directory we have to be aware that the data we read may not be up-to-date because of the replication latency.
The classes in the System.DirectoryServices namespaces give us easy ways to access the Active Directory by wrapping to the ADSI providers. The DirectoryEntry class makes it possible to read and write objects directly in the data store.
With the DirectorySearcher class we can do complex searches and define filters, timeouts, properties to load, and a scope. Using the Global Catalog we can speed up the search for objects in the complete enterprise, because it stores a read-only version of all objects in the forest.