a = attrs_find( a->a_next, ava->aa_desc )) {
rc = LDAP_COMPARE_FALSE;
- if ( value_find( ava->aa_desc, a->a_vals, &ava->aa_value ) == 0 ) {
+#ifdef SLAP_NVALUES
+ if ( value_find_ex( ava->aa_desc,
+ SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH,
+ a->a_nvals ? a->a_nvals : a->a_vals,
+ &ava->aa_value ) == 0 )
+#else
+ if ( value_find( ava->aa_desc, a->a_vals, &ava->aa_value ) == 0 )
+#endif
+ {
rc = LDAP_COMPARE_TRUE;
break;
}
const char *text = NULL;
struct berval asserted;
+#ifdef SLAP_NVALUES
+ rc = asserted_value_validate_normalize(
+ mod->sm_desc, mr,
+ SLAP_MR_EQUALITY,
+ &mod->sm_bvalues[i],
+ &asserted,
+ &text );
+#else
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,
&mod->sm_bvalues[i],
&asserted,
&text );
+#endif
if ( rc != LDAP_SUCCESS ) {
return rc;
struct berval asserted;
+#ifdef SLAP_NVALUES
+ rc = asserted_value_validate_normalize(
+ mod->sm_desc, mr,
+ SLAP_MR_EQUALITY,
+ &mod->sm_bvalues[i],
+ &asserted,
+ &text );
+#else
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,
&mod->sm_bvalues[i],
&asserted,
&text );
+#endif
if( rc != LDAP_SUCCESS ) return rc;