I'm trying to use the sssvlv overlay with ldapsearch, by supplying these
options to ldapsearch (openldap-2.4.23 on Centos 5.4):
-E \!sss=mail:caseIgnoreIA5Match -E \!vlv=0/10/0/10
The server returns 10 entries as expected and then ldapsearch prompts: Press
[before/after(/offset/count|:value)] Enter for the next window.
If I then enter 0/10/0/10, I get the response from the server:
# extended LDIF## LDAPv3# base <.........> with scope subtree# filter:
(objectclass=*)# requesting: ALL# with server side sorting critical control#
with virtual list view critical control: 0/10/0/10#
# search resultsearch: 3result: 4 Size limit exceeded
This appears to be because of these lines in result.c, in
slap_send_search_entry():
if ( op->ors_slimit >= 0 && rs->sr_nentries >= op->ors_slimit ) {
return LDAP_SIZELIMIT_EXCEEDED; }
and because op->ors_slimit is now 0 instead of SLAP_NO_LIMIT (-1).
Any ideas?
Chris
From: [email protected]
To: [email protected]; [email protected]
Subject: RE: server side sorting
Date: Sat, 11 Jun 2011 08:36:33 +0000
> > Looking at openldap 2.4.23, it seems that Server Side Sorting is now
> > supported - is this documented somewhere?
>
> <http://www.openldap.org/software/man.cgi?query=slapo-sssvlv&apropos=0&sektion=0&manpath=OpenLDAP+2.4-Release&format=html>
>
> --Quanah
Thanks!
Chris