[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_search_ext_s...



Michael Ströder wrote:

> Patrick Gelin wrote:
>> 
>> I'm trying to use "ldap_search_ext_s" and/or "ldap_search_ext" from
>> ldap-python in order to limit the size of my query result to an Active
>> Directory server.
> 
> This might be more a python-ldap issue. You're welcome to post such a
> question on the python-ldap-dev mailing list.
> 
ok, but there was a second part with my message and it's the same problem
with ldapsearch ... -z 5

> http://lists.sourceforge.net/lists/listinfo/python-ldap-dev
> 
>>   result =
>>   i_ldap.search_ext_s(base,ldap.SCOPE_SUBTREE,'sn=*',sizelimit=5)
>> 
>> I know AD MaxPageSize is 1000 but my limit is only 5 and the result is
>> always:
>> 
>> SIZELIMIT_EXCEEDED
> 
> Simply don't set sizelimit=5 when calling method search_ext_s.
> 
ok, It's working but I reach 1000 result I get an error message. What I
would like to do is to never get an error message from AD, so I would like
to set a limit under 1000...

> Ciao, Michael.