From 61029a3ecf470cd0aaf346e87d826ed7d87c1c5c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 11 Feb 2011 04:27:17 +0000 Subject: [PATCH] Add substring matching rules for some of the olc-schema attributes. Allows for easy extraction of individual objectclass definitions using matchedValues searches. --- servers/slapd/bconfig.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 72b36631a7..0ab97d98b3 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -319,6 +319,7 @@ static ConfigTable config_back_cf_table[] = { &config_generic, "( OLcfgGlAt:4 NAME 'olcAttributeTypes' " "DESC 'OpenLDAP attributeTypes' " "EQUALITY caseIgnoreMatch " + "SUBSTR caseIgnoreSubstringsMatch " "SYNTAX OMsDirectoryString X-ORDERED 'VALUES' )", NULL, NULL }, { "authid-rewrite", NULL, 2, 0, STRLENOF( "authid-rewrite" ), @@ -368,6 +369,7 @@ static ConfigTable config_back_cf_table[] = { &config_generic, "( OLcfgGlAt:16 NAME 'olcDitContentRules' " "DESC 'OpenLDAP DIT content rules' " "EQUALITY caseIgnoreMatch " + "SUBSTR caseIgnoreSubstringsMatch " "SYNTAX OMsDirectoryString X-ORDERED 'VALUES' )", NULL, NULL }, { "extra_attrs", "attrlist", 2, 2, 0, ARG_DB|ARG_MAGIC, @@ -414,6 +416,7 @@ static ConfigTable config_back_cf_table[] = { &config_generic, "( OLcfgGlAt:85 NAME 'olcLdapSyntaxes' " "DESC 'OpenLDAP ldapSyntax' " "EQUALITY caseIgnoreMatch " + "SUBSTR caseIgnoreSubstringsMatch " "SYNTAX OMsDirectoryString X-ORDERED 'VALUES' )", NULL, NULL }, { "limits", "limits", 2, 0, 0, ARG_DB|ARG_MAGIC|CFG_LIMITS, @@ -469,11 +472,13 @@ static ConfigTable config_back_cf_table[] = { &config_generic, "( OLcfgGlAt:32 NAME 'olcObjectClasses' " "DESC 'OpenLDAP object classes' " "EQUALITY caseIgnoreMatch " + "SUBSTR caseIgnoreSubstringsMatch " "SYNTAX OMsDirectoryString X-ORDERED 'VALUES' )", NULL, NULL }, { "objectidentifier", "name>