[python-ldap] Paging in LDAP

Michael Ströder michael at stroeder.com
Tue Sep 10 20:15:28 CEST 2013


Jakob Simon-Gaarde wrote:
> I have tried to use python-ldap to implement a paged search for
> returning limited amounts of data using SimplePagedResultsControl.
> This works fine as long as I need to iterate through data from start
> to end. In my case I have a situation where a web client should be
> able to ask for the next page or jump 10 pages ahead or back. I can't
> seem to find a way to make the server control "jump" to a certain
> page.

Yes, see

http://tools.ietf.org/html/rfc2696

> It seems like the problem is solved in java's ldap
> implementation with the VirtualListViewRequestControl.
> Is there enything I can do?

You have to implement classes for the LDAPv3 extended controls described herein:

https://tools.ietf.org/html/draft-ietf-ldapext-ldapv3-vlv-09

Contributions to python-ldap welcome.

Note that the LDAP server has to also support this.

Ciao, Michael.

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


More information about the python-ldap mailing list