Speeding up LDAP Queries

Posted On 2008-01-25 by FortyPoundHead
Tags: Active Directory 
Views: 2775

The GC server contains a replica of every object in every domain in the forest but stores only some of the attributes for each of those objects. Think of a phone book: It lists the names and addresses of the people in your city, but it doesn''t show their height, weight, or eye color. Many attributes in the GC are indexed to speed up queries against them.

If your code is searching for an attribute that isn''t in the GC or one that''s present but not indexed, the query will take an unusual amount of time.

The Microsoft article "Default Global Catalog Attributes in Windows 2000 Active Directory Schema" lists the indexed attributes. By querying these attributes (or forcing the GC to index the attributes you do use), you can significantly improve your search performance.

About the Author

FortyPoundHead has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links