]> git.sur5r.net Git - openldap/commitdiff
Add numericStringOrderingMatch rule (ITS#2988)
authorKurt Zeilenga <kurt@openldap.org>
Fri, 26 Mar 2004 18:58:01 +0000 (18:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 26 Mar 2004 18:58:01 +0000 (18:58 +0000)
servers/slapd/schema_init.c

index 0b3de6e82a33ff7ab8e5b6dbd1f2b4da36293980..e424f6310c674a4d350e1b6f6b1b6e2a06608c74 100644 (file)
@@ -2889,7 +2889,6 @@ char *objectIdentifierFirstComponentMatchSyntaxes[] = {
 /*
  * Other matching rules in X.520 that we do not use (yet):
  *
- * 2.5.13.9*   numericStringOrderingMatch
  * 2.5.13.25   uTCTimeMatch
  * 2.5.13.26   uTCTimeOrderingMatch
  * 2.5.13.31*  directoryStringFirstComponentMatch
@@ -2960,7 +2959,7 @@ static slap_mrule_defs_rec mrule_defs[] = {
 
        {"( 2.5.13.4 NAME 'caseIgnoreSubstringsMatch' "
                "SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )",
-               SLAP_MR_SUBSTR, NULL,
+               SLAP_MR_SUBSTR, directoryStringSyntaxes,
                NULL, UTF8StringNormalize, octetStringSubstringsMatch,
                octetStringSubstringsIndexer, octetStringSubstringsFilter,
                "caseIgnoreMatch" },
@@ -2993,6 +2992,13 @@ static slap_mrule_defs_rec mrule_defs[] = {
                octetStringIndexer, octetStringFilter,
                NULL },
 
+       {"( 2.5.13.9 NAME 'numericStringOrderingMatch' "
+               "SYNTAX 1.3.6.1.4.1.1466.115.121.1.36 )",
+               SLAP_MR_ORDERING, NULL,
+               NULL, numericStringNormalize, octetStringOrderingMatch,
+               NULL, NULL,
+               "numericStringMatch" },
+
        {"( 2.5.13.10 NAME 'numericStringSubstringsMatch' "
                "SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )",
                SLAP_MR_SUBSTR, NULL,