Issue 6532 - Support for common orderingMatching rules in extensible match filters
Summary: Support for common orderingMatching rules in extensible match filters
Status: RESOLVED PARTIAL
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-25 09:39 UTC by daniel@pluta.biz
Modified: 2020-03-19 19:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description daniel@pluta.biz 2010-04-25 09:39:03 UTC
Full_Name: Daniel Pluta
Version: HEAD
OS: Linux
URL: ftp://ftp.openldap.org/incoming/servers-slapd-schema_init.patch
Submission from: (NULL) (2001:470:9feb:ff02:f435:4e97:f213:bc9e)


In regard to http://www.openldap.org/lists/openldap-technical/201004/msg00228.html
I've uploaded a patch which enables support for octetStringOrderingMatch to be
used in combination with extensible match filters. According RFC4517 section 4.1
the following ordering matching rules currently available in slapd are affected
by this patch:

caseIgnoreOrderingMatch
caseExactOrderingMatch

In addition I've added this kind of support to generalizedTimeOrderingMatch,
too.

The patch can be downloaded here:
ftp://ftp.openldap.org/incoming/servers-slapd-schema_init.patch

Note: RFC4517 section 4.1 also lists some substring matching rules which also
SHOULD be supported in extensible match filters. slapd as well as my patch
currently do not offer support for them.
Comment 1 Howard Chu 2010-07-28 18:12:31 UTC
The patch in the URL you specified appears to be empty.
Comment 2 daniel@pluta.biz 2010-07-29 07:46:13 UTC
Howard Chu schrieb:
> The patch in the URL you specified appears to be empty.

Although I'm pretty sure I've successfully uploaded the patch as I 
(think I) always check the URLs twice right after posting I just tried 
to upload it again some minutes ago using the filename: 
servers-slapd-schema_init_2.patch

The ftp-server let me successfully log in but does not allow me to 
upload anything into /incoming:
"425 Can't build data connection: Connection refused."

Possibly this is also the cause the patch file currently seems to be 
empty after your download?

I've tried the upload from different hosts and networks (IPv6 with IPv4 
fallback) without success. Have not investigated in deep but I think it 
does not seem to be a problem of my/our firewalls.


daniel@tingletangle:~$ ftp ftp.openldap.org
Connected to www.openldap.org.
220- OpenLDAP FTP Service
220 boole.openldap.org FTP server (Version 6.00LS) ready.
Name (ftp.openldap.org:daniel): anonymous
331 Guest login ok, send your email address as password.
Password:
230- Copyright 1998-2010, The OpenLDAP Foundation, All Rights Reserved.
230- COPYING RESTRICTIONS APPLY, see:
230-    ftp://ftp.openldap.org/COPYRIGHT
230-    ftp://ftp.openldap.org/LICENSE
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd incoming
250 CWD command successful.
ftp> ascii
200 Type set to A.
ftp> put servers-slapd-schema_init_2.patch
local: servers-slapd-schema_init_2.patch remote: 
servers-slapd-schema_init_2.patch
200 PORT command successful.
425 Can't build data connection: Connection refused.
ftp> quit

Comment 3 daniel@pluta.biz 2010-07-30 08:05:20 UTC
The patch can be downloaded from here:

ftp://ftp.openldap.org/incoming/servers-slapd-schema_init.patch.2

passive ftp rules - sorry for the confusion

Comment 4 Hallvard Furuseth 2010-11-24 04:14:50 UTC
changed notes
changed state Open to Partial
moved from Incoming to Software Enhancements
Comment 5 Hallvard Furuseth 2010-11-24 12:14:41 UTC
Variant applied to HEAD: schema_init.c 1.473.  Correct 'match' code is
simpler than yours, now that you've pointed me in the right direction.

All ordering rules except CSNOrderingMatch and UUIDOrderingMatch now
support extensible match.  Someone who knows slapd's use of CSNs and
UUIDs can (tell me to) do the same there if it's OK to do so.  I didn't
want to meddle carelessly, also I don't know what UUIDOrderingMatch's
SLAP_MR_MUTATION_NORMALIZER flag means and if it would interfere.

-- 
Hallvard

Comment 6 Hallvard Furuseth 2010-11-28 17:11:17 UTC
BTW, it occurred to me that it might be an idea to add comments
instead of removing yours.  slapd/schema_init.c (rev 1.474) now
explains how it works, as far as I understand it.

-- 
Hallvard

Comment 7 Hallvard Furuseth 2010-12-01 05:06:32 UTC
changed notes
changed state Partial to Test
Comment 8 Quanah Gibson-Mount 2011-01-03 14:47:28 UTC
changed notes
changed state Test to Release
Comment 9 Hallvard Furuseth 2011-02-02 13:27:48 UTC
changed notes
changed state Release to Partial
Comment 10 Hallvard Furuseth 2011-02-02 21:30:01 UTC
Also added support for CSNOrderingMatch extensible filters.

UUIDOrderingMatch awaits checking what's going on with it.

-- 
Hallvard

Comment 11 Hallvard Furuseth 2011-02-03 02:06:19 UTC
changed notes
Comment 12 Hallvard Furuseth 2011-02-10 02:33:12 UTC
changed notes
Comment 13 OpenLDAP project 2014-08-01 21:04:55 UTC
Applied to HEAD.
Applied to RE24.
TODO: UUIDOrderingMatch (unimportant, just for completeness, but see
schema_init.c 1.479)