Enumerating Indexed Attributes in Windows 2000 Active Directory
This article was previously published under Q230662
This article has been archived. It is offered "as is" and will no longer be updated.
To achieve the best performance when querying against the Active Directory, you should query indexed attributes. Indexed attributes are configured with the searchFlags bit set of 0x00000001.
To enumerate all indexed attributes, bind to the schema container and use the following LDAP filter:
To use the Ldp.exe program to query the active directory enumerating attributes that are indexed for quick searches:
- Start the Ldp.exe program, and then increase the text buffer size to 9999.
- Bind to a Windows 2000-based domain, and then determine the schema's distinguished name by observing the output of LDP
- On the Browse menu, click Search, and then type the schemNamingContext value into the Base DN box.
- Type the following filter into the Filter Box:
- Click Subtree for the Scope, and then click Options.
- Enter the attributes you want to be returned:
- In the Search Options box, click OK, and then click Run to execute the query.
For additional related information, please see the following article in the Microsoft Knowledge Base:
Using Ldp.exe to Find Data in the Active Directory
Article ID: 230662 - Last Review: 11/02/2013 15:37:00 - Revision: 3.0
Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server
- kbnosurvey kbarchive kbhowto kbnetwork KB230662