[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>
>> 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
>> > 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
>> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-ldap