Microsoft KB Archive/230663

= HOW TO: Enumerate Attributes Replicated to the Global Catalog =

Article ID: 230663

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server

-



This article was previously published under Q230663





IN THIS TASK
SUMMARY
 * Query Active Directory

REFERENCES



SUMMARY
This step-by-step article describes how to enumerate attributes replicated in the Global catalog. To obtain information about all of the objects in a Windows 2000 enterprise, query the global catalog. The global catalog consists of all objects in every domain in the enterprise. However, only selected attributes are replicated to the Global Catalog for each object.

To enumerate the attributes which are replicated to the Global Catalog, bind to the schema container and use the following LDAP filter:

(&(objectCategory=attributeSchema)(isMemberOfPartialAttributeSet=TRUE))

back to the top

Query Active Directory
To query the active directory enumerating attributes that are replicated to the Global Catalog, use the Ldp.exe tool in the Microsoft Windows 2000 Resource Kit. To do this, follow these steps:  Open the Ldp.exe tool. Click Options, click General, type 9999 in the Page Size box, and then click OK. Click Connection, and then click Bind. Note the output of LDP schemaNamingContext to determine the schema's Distinguished Name. The LDP schemaNamingContext uses the following context:

CN=Schema,CN=Configuration,DC=domainName,DC=com

 On the Browse menu, click Search. Paste the value of schemaNamingContext into the Base DN box.</li> Paste the following filter into the Filter Box:

<pre class="fixed_text">(&(objectCategory=attributeSchema)(isMemberOfPartialAttributeSet=TRUE))

</li> Under Scope, click Subtree.</li> Click Options.</li> Type the attributes you want, using the following syntax:

objectClass;name;cn;distinguishedName;

</li> On the Search Options box, click OK.</li> Click Run to execute the query.</li></ol>

back to the top back to the top

<div class="references_section">