[Date Prev][Date Next]
Re: (ITS#8004) Simple Paged Control: Set 'size' in return control value to number of search results
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8004) Simple Paged Control: Set 'size' in return control value to number of search results
- From: email@example.com
- Date: Fri, 12 Dec 2014 12:43:53 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
> Submission from: (NULL) (184.108.40.206)
> Feature request:
> In the control returned to the client, the
> size MAY be set to the server's estimate of the total number of
> entries in the entire result set.
> So a client could evaluate this size value whether it's greater than 0 and take
> this as indication how many search results would be returned (and e.g. display
> it to the user).
slapd doesn't know in advance how many results can be returned. It knows
how many potential candidates were generated by index lookups, but this
number may be much larger than the actual result set. In particular, the
result set may be much smaller due to ACLs, as well as actual filter
comparisons. It would be a security violation to disclose the existence
of entries that the user is not permitted to see.
Rejecting this request.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/