Skip to content
Snippets Groups Projects
Commit c0bbb090 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix substring indices and enable in tests.

parent 9c5ad629
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment