python-ldap reading an OU with more than 1000 objects

Michael Ströder michael at stroeder.com
Sat Oct 18 15:44:59 CEST 2008


Erick Perez - Quadrian Enterprises, S.A. wrote:
> I have a MS Windows AD domain, and have one OU with more tan 1000 users
> objects. When I try to read it, I hit the 1000 limit of AD while returning
> objects, so I'm asking for advice as to how to read them.

IIRC with MS AD you can circumvent this limit by using the Simple Paged
Control (see RFC 2696). Check Demo/page_control.py in python-ldap's
source distribution for example code.

Ciao, Michael.



More information about the Python-list mailing list