On 28 Jul 2008, at 17:21, Katsuhisa Fujinaga wrote:
Hi, all.
Does anybody know how to direct page access?
I need to do an LDAP search, via Net::LDAP, on a openLDAP.
Since large quantity of data are stored, I would like to use
"server side paging" interface.
For example:
- maximum page size = 1000
- page number = 2
In the condition mentioned above, I want to get
objects(1001-2000) directly!
I checked Net::LDAP and Net::LDAP::Control::Paged (RFC-2696),
but I could not find good idea or modules.
search() has sizelimit option, but doesn't have page option.
Net::LDAP::Control::Paged provides "paging", but it is continuous
accesss.
Paged Results only provides a first page/next page/next page/...
model, so there's no way for it to do what you want. See RFC 2696 for
the spec.
Of course you can workaround this limitation by doing the search
anyway and just throwing away all the pages you don't care about.
If you used Virtual List Views instead (and if your server supports
it) that has the ability to go to arbitrary pages in the result
sequence.
<http://tools.ietf.org/html/draft-ietf-ldapext-ldapv3-vlv-09>
Ah, I see it has been renamed as "Scrolling View Browsing" or
somesuch. Presumably the ASN.1's still compatible with our code?
Cheers,
Chris