Platform SDK: Active Directory, ADSI, and Directory Services |
To search for attributeSchema or classSchema objects, bind to an IDirectorySearch pointer on the schema container on any domain controller. The schema container is a full replica of the schema and is available on all domain controllers. Note that the schema container's distinguished name should be retrieved from the schemaNamingContext property from rootDSE. For sample code that retrieves the DN of the schema container, see Example Code for Getting the Distinguished Name for the Naming Context in the Binding chapter.
For additional information on reading from the schema container or from the abstract schema, see Guidelines for Binding to the Schema.