]> git.sur5r.net Git - openldap/commitdiff
SLAP_NVALUES: value_find v value_find_ex
authorKurt Zeilenga <kurt@openldap.org>
Sun, 16 Mar 2003 01:39:39 +0000 (01:39 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 16 Mar 2003 01:39:39 +0000 (01:39 +0000)
servers/slapd/back-ldbm/compare.c

index 921ba2cfdcda3ae86db2d190d98333796facb510..dad8445069c63e3f58148938b72f6611579c4865 100644 (file)
@@ -103,7 +103,16 @@ ldbm_back_compare(
        {
                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 |
+                               SLAP_MR_ASSERTED_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;
                }