[python-ldap] Need success response code in LDAP search request

Radhika Arora radhikarora15 at gmail.com
Thu Jul 5 08:54:12 EDT 2018


Please ignore program hung up problem when msgid was passed to
result3/result4, I just noticed that default value of timeout is negative
in search_ext() in ldapobject.py
which says it will be blocked indefinitely.

Thanks,
Radhika Arora

On Thu, Jul 5, 2018 at 6:18 PM, Radhika Arora <radhikarora15 at gmail.com>
wrote:

> Hi Team,
>
> Recently I got a chance to implement LDAP search functionality in python
> and this library helped me alot.
>
> I had to implement LDAP search functionality and while doing this
> implementation I found that
> *search_ext_st/search_s/search_ext()* all these methods do not return any
> success response code.
> though I got the correct results on the basis of filter_query passed to
> the function.
>
> Search functions return some msgid which is unique in every ldap search
> request and passing this msgid to *result()* gives the result_type and
> result_data whereas program got hung when msgid was passed to
> *result3/result4()* method.
>
> While exploring the code I found *ldap.OPT_SUCCESS* variable whose value
> is 0(I think this is success response code which should be present in
> response of LDAP search).
>
> I am wondering whether success response_code is not present in the ldap
> search response or I am misunderstanding/missing something in received
> response.
>
> Please let me know how can I unblock myself.
>
> Thanks & Regards,
> Radhika Arora
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20180705/7e71b0a9/attachment.html>


More information about the python-ldap mailing list