[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Stopping pagination



Côme Chilliet <come@opensides.be> writes:

> Hello,
>
> Once a pagination server controls is set with ldap_set_option, it
> seems impossible to cancel pagination by sending a pagination control
> with 0 as pagesize.
>
> What I mean is calling ldap_set_option to set a pagination control
> (let’s say page size is 4),
> then starting a search,
> then calling ldap_set_option to set the pagination control with page
> size of 0 (and with the cookie returned by the search)
>
> Then trying to start new search will return 0 entries.
>
> From what I understood in https://www.ietf.org/rfc/rfc2696.txt I
> thought a page size of 0 would disable pagination but it does not seem
> to work.

You should read the RFC more carefully, in particular section 3.
A page size of 0 only returns 0 results, but does not disable the
search control.
If you want to disable a size limit, you may read section 6.

-Dieter


-- 
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E

Attachment: signature.asc
Description: PGP signature