Microsoft KB Archive/230663

From BetaArchive Wiki
Knowledge Base


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


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:

  1. Open the Ldp.exe tool.
  2. Click Options, click General, type 9999 in the Page Size box, and then click OK.
  3. Click Connection, and then click Bind.
  4. 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

  5. On the Browse menu, click Search.
  6. Paste the value of schemaNamingContext into the Base DN box.
  7. Paste the following filter into the Filter Box:
    (&(objectCategory=attributeSchema)(isMemberOfPartialAttributeSet=TRUE))
                            
  8. Under Scope, click Subtree.
  9. Click Options.
  10. Type the attributes you want, using the following syntax:

    objectClass;name;cn;distinguishedName;

  11. On the Search Options box, click OK.
  12. Click Run to execute the query.

back to the top back to the top

REFERENCES

For additional information about LDAP, please see the following articles in the Microsoft Knowledge Base:

224543 Using Ldp.exe to Find Data in the Active Directory


221606 Common LDAP RFCs


222560 LDAPv3 Controls


back to the top

Keywords: kbhowto kbhowtomaster kbnetwork KB230663