[python-ldap] ReconnectLDAPObject and server controls in search results?

Stephen J. Butler stephen.butler at gmail.com
Wed Dec 7 19:37:44 EST 2016


I don't think the paged results cookie is good across reconnection anyway.
You loose the benefit of that subclass in this case.



On Wed, Dec 7, 2016 at 4:08 PM, Jen Fong via python-ldap <
python-ldap at python.org> wrote:

> Thanks for the quick reply Michael
>
> Yes, this is an active directory server we're talking to.
>
> I had a look at the demo, however that uses the asynchronous search
> request.  That works in our code, but then loses the ReconnectLDAPObject's
> automated reconnection feature since that is only for synchronous requests.
>
> Can SimplePagedResultsControl be used with the *synchronous* search
> function? And if so, how do I get the resulting cookie?
>
> On Wed, Dec 7, 2016 at 1:58 PM, Michael Ströder <michael at stroeder.com>
> wrote:
>
>> Jen Fong via python-ldap wrote:
>> > I now need to support fetching more results than is allowed by our
>> > server-side limit, so plan to use the SimplePagedResultsControl to
>> fetch the
>> > results in pages.
>>
>> Which LDAP server? Only MS AD has this strange behaviour of allowing to
>> circumvent search size limits with this control.
>>
>> > However, I couldn't find in the documentation how to retrieve the
>> resulting
>> > control cookie in order to progress to the next page when using
>> > LDAPObject.search_ext_s since it returns simply the list of results for
>> the
>> > page. Is it possible to use SimplePagedResultsControls with
>> > ReconnectLDAPObject.search_ext_s ?
>>
>> See Demo/page_control.py in the source tar.gz.
>>
>> Ciao, Michael.
>>
>>
>
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> https://mail.python.org/mailman/listinfo/python-ldap
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20161207/2dfd7e25/attachment-0001.html>


More information about the python-ldap mailing list