[python-ldap] ldap.OPT_DESC, async ops and paged search controls

Michael Ströder michael at stroeder.com
Thu Jan 22 16:16:35 CET 2015


Mark R Bannister wrote:
> On 21/01/2015 09:16, Michael Ströder wrote:
>> Mark R Bannister wrote:
>>> I've been using the new ldap.OPT_DESC feature introduced in python-ldap 2.4.17
>>> and have a question concerning the use of it with asynchronous search
>>> operations and paged search controls.
>> Never used that myself.
>>
>> Why are you using paging? This only makes sense if you want to retrieve more
>> than 1000 entries from MS AD.
> 
> I've tested this now without paged search controls and get the same problem.

Ok, my local tests show the same results (openSUSE Linux 13.2, OpenLDAP RE24
from git, python-ldap 2.4.19). And ldap.resiter is not really usable for
msgid=ldap.RES_ANY.

I vaguely remember having seen this many years ago. Because at that time I had
rewritten LDAPObject.result() to internally poll for results which made the
process a CPU hog. :-/

So yes, you should take this to openldap-technical mailing list.
For there you should ideally present C code depmonstrating the issue. ;-)

Ciao, Michael.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4252 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20150122/0bc5af13/attachment-0001.bin>


More information about the python-ldap mailing list