When checking if an entry matches some filter, we have the list of

values as stored in the entry on the one hand and an assertion value
that is not necessarily of the same syntax.  So tell value_match this
is the case by setting SLAP_MR_VALUE_IS_IN_MR_SYNTAX in flags.
This commit is contained in:
Julio Sánchez Fernández 2001-10-22 20:07:06 +00:00
parent 5f6d5494dd
commit dd34307cf7

View file

@ -254,7 +254,8 @@ static int test_mra_filter(
int rc;
const char *text;
rc = value_match( &ret, a->a_desc, mra->ma_rule, 0,
rc = value_match( &ret, a->a_desc, mra->ma_rule,
SLAP_MR_VALUE_IS_IN_MR_SYNTAX,
a->a_vals[i], mra->ma_value,
&text );
@ -325,7 +326,8 @@ test_ava_filter(
int rc;
const char *text;
rc = value_match( &ret, a->a_desc, mr, 0,
rc = value_match( &ret, a->a_desc, mr,
SLAP_MR_VALUE_IS_IN_MR_SYNTAX,
a->a_vals[i], ava->aa_value,
&text );
@ -511,7 +513,8 @@ test_substrings_filter(
int rc;
const char *text;
rc = value_match( &ret, a->a_desc, mr, 0,
rc = value_match( &ret, a->a_desc, mr,
SLAP_MR_VALUE_IS_IN_MR_SYNTAX,
a->a_vals[i], f->f_sub,
&text );