]> git.sur5r.net Git - openldap/commitdiff
Fix substring indices and enable in tests.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 18 Jul 2000 22:59:34 +0000 (22:59 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 18 Jul 2000 22:59:34 +0000 (22:59 +0000)
servers/slapd/schema_init.c
tests/data/slapd-master.conf

index 590f344e6349e4062ad64cdd5f3a412ee8120be4..a16ff0bd0276dabe9cc17e04ac4af35c71e3753a 100644 (file)
@@ -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 );
index 8d862673b795d59ac8604ffe449d29794a5996e9..eb99c90c92b36b1143755745f22138c8d7ac247d 100644 (file)
@@ -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