[python-win32] win32com.adsi limits number of members returned

Matt LaPlante mattl at google.com
Fri Jun 15 23:43:43 CEST 2012


Using the following code...

import win32com.adsi
DNC=win32com.adsi.ADsGetObject('LDAP://rootDSE').Get('DefaultNamingContext')
path = 'LDAP://cn=BIG_GROUP,ou=Groups,'+DNC
groupobj = win32com.adsi.ADsGetObject(path)
users = groupobj.member
print len(users)

The output is always a maximum 1500, even if BIG_GROUP contains
several thousand members. How can I execute this query in a way that
returns all members of BIG_GROUP?


More information about the python-win32 mailing list