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

(ITS#7253) Error returned when sss control used with a non ordered attribute, even if the control is not critical

Full_Name: Clément OUDOT
Version: 2.4.30
OS: GNU/Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

I noticed that with OpenLDAP 2.4.30, a search request with a non
criticical sss control on an attribute without ordering matching rule
returns an error:

clement@ader:~/Programmes/openldap$ bin/ldapsearch -H
ldap://localhost:3389 -D ou=lsc,ou=accounts,ou=XXX -w secret -b
ou=people,ou=XXX -E sss=cn
# extended LDIF
# LDAPv3
# with server side sorting control

# search result
search: 2
result: 18 Inappropriate matching
text: serverSort control: No ordering rule

# numResponses: 1

I think the error should only be returned if the control is critical. Else, the
search results should be returned, not sorted.

A patch was proposed in ITS 6647, it was working when applied to 2.4.23 version: