All members of a group may not be returned when you enumerate members of a group by using the Active Directory Service Interfaces WinNT provider (321538)
The information in this article applies to:
- Microsoft Windows 2000 Professional
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows XP Professional
- Microsoft Windows XP Home Edition
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Server 2003, Standard Edition
- Microsoft Windows Server 2003, Enterprise Edition
- Microsoft Windows Server 2003, Datacenter Edition
This article was previously published under Q321538 SYMPTOMSWhen you enumerate members of a group by using the Active Directory Service Interfaces (ADSI) WinNT
provider, and you use a binding string, a problem may occur. Some members of the group may not be returned
if the group that you are enumerating has members of the following: - A local group that contains domain users and domain groups as members
- A domain local group that contains groups from trusted domains as members
WORKAROUNDYou can use the GetObject
method to obtain the full member list. The GetObject method uses the credentials for the currently logged on user. The following code example demonstrates this. GetObject("WinNT://<server>/<group>,group") If the account that you want to use for enumerating the group is not the
currently logged on user, you can use impersonation before you use the
GetObject method.
For additional information about how to impersonate a user, click the following article number to view the article in the Microsoft Knowledge Base:
248187
How to impersonate a user from Active Server Pages
STATUS This
behavior is by design.REFERENCESFor additional information about programming with Active Directory Service Interfaces, visit the following Microsoft Developer Network (MSDN) Web site:
Modification Type: | Major | Last Reviewed: | 9/30/2004 |
---|
Keywords: | kbtshoot kbprb KB321538 kbAudDeveloper |
---|
|