HOWTO: Speed Up ADSI Group & Dist. List Membership Checks (192950)
The information in this article applies to:
- Microsoft Windows 95
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 4.0
This article was previously published under Q192950 SUMMARY
In some providers, the ADSI groupobject.IsMember(memberADsPath) method is
implemented to perform membership checks by returning the entire members
collection to the client and then searching for the target's path in the
collection. This operation can consume a lot of time and bandwidth if the
object has a large membership list, like an Exchange distribution list. You
can avoid much of this overhead if the following is true:
- You need the object only for a membership test.
- You are using a provider that supports OLE DB.
In this case, you can do an ADO or OLE DB query and perform the search on
the server. This way, only a single record is returned to the client.
The LDAP and NDS providers supplied with the ADSI runtime support this
technique.
REFERENCES
Microsoft Developer Network: ADSI
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbAPI kbhowto kbnetwork KB192950 |
---|
|