return LDAP_INAPPROPRIATE_MATCHING;
}
+#ifndef SLAP_NVALUES
/*
* OK, if no matching rule, normalize for equality, otherwise
* normalize for the matching rule.
if ( rc == LDAP_SUCCESS ) {
ber_dupbv( &ma->ma_value, &value );
}
+#endif
+ }
+#ifdef SLAP_NVALUES
+ /*
+ * Normalize per matching rule
+ */
+ rc = asserted_value_validate_normalize( ma->ma_desc,
+ ma->ma_rule,
+ SLAP_MR_EXT|SLAP_MR_VALUE_OF_ASSERTION_SYNTAX,
+ &ma->ma_value, &value, text );
+ if ( rc == LDAP_SUCCESS ) {
+ ber_dupbv( &ma->ma_value, &value );
}
+#endif
if( rc != LDAP_SUCCESS ) {
mra_free( ma, 1 );