From c0bbb090b7323881f2a3eee056caff3b68ab2d3a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 18 Jul 2000 22:59:34 +0000 Subject: [PATCH] Fix substring indices and enable in tests. --- servers/slapd/schema_init.c | 6 +++--- tests/data/slapd-master.conf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 590f344e63..a16ff0bd02 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -1398,10 +1398,10 @@ int caseIgnoreIA5SubstringsIndexer( int j,max; struct berval *value; - if( value->bv_len < SLAP_INDEX_SUBSTR_MINLEN ) continue; + if( values[i]->bv_len < SLAP_INDEX_SUBSTR_MINLEN ) continue; - max = SLAP_INDEX_SUBSTR_MAXLEN < value->bv_len - ? SLAP_INDEX_SUBSTR_MAXLEN : value->bv_len; + max = SLAP_INDEX_SUBSTR_MAXLEN < values[i]->bv_len + ? SLAP_INDEX_SUBSTR_MAXLEN : values[i]->bv_len; value = ber_bvdup( values[i] ); ldap_pvt_str2upper( value->bv_val ); diff --git a/tests/data/slapd-master.conf b/tests/data/slapd-master.conf index 8d862673b7..eb99c90c92 100644 --- a/tests/data/slapd-master.conf +++ b/tests/data/slapd-master.conf @@ -21,6 +21,6 @@ suffix "o=University of Michigan, c=US" directory ./test-db rootdn "cn=Manager, o=University of Michigan, c=US" rootpw secret -index cn,sn,uid pres,eq +index cn,sn,uid pres,eq,sub dbnosync dbnolocking -- 2.39.5