From: Kurt Zeilenga Date: Thu, 3 May 2001 00:59:47 +0000 (+0000) Subject: Add telephone number indexing support (reuse only) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1451 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=508890e75b53672ac956a84233241800ee8dddc8;p=openldap Add telephone number indexing support (reuse only) --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 54baf05853..b06349928c 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -84,6 +84,11 @@ #define integerIndexer caseIgnoreIA5Indexer #define integerFilter caseIgnoreIA5Filter +#define telephoneNumberIndexer caseIgnoreIA5Indexer +#define telephoneNumberFilter caseIgnoreIA5Filter +#define telephoneNumberSubstringsIndexer caseIgnoreIA5SubstringsIndexer +#define telephoneNumberSubstringsFilter caseIgnoreIA5SubstringsFilter + static char *strcasechr( const char *str, int c ) { char *lower = strchr( str, TOLOWER(c) ); @@ -4477,14 +4482,18 @@ struct mrule_defs_rec mrule_defs[] = { "SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )", SLAP_MR_EQUALITY | SLAP_MR_EXT, NULL, NULL, - telephoneNumberMatch, NULL, NULL, + telephoneNumberMatch, + telephoneNumberIndexer, + telephoneNumberFilter, NULL}, {"( 2.5.13.21 NAME 'telephoneNumberSubstringsMatch' " "SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )", SLAP_MR_SUBSTR | SLAP_MR_EXT, NULL, NULL, - telephoneNumberSubstringsMatch, NULL, NULL, + telephoneNumberSubstringsMatch, + telephoneNumberSubstringsIndexer, + telephoneNumberSubstringsFilter, NULL}, {"( 2.5.13.22 NAME 'presentationAddressMatch' "