]> git.sur5r.net Git - openldap/commitdiff
SLAP_NVALUES: fix values_find_ex call
authorKurt Zeilenga <kurt@openldap.org>
Mon, 17 Mar 2003 00:30:35 +0000 (00:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 17 Mar 2003 00:30:35 +0000 (00:30 +0000)
servers/slapd/back-ldbm/group.c

index 0c3f6c29b4cd5e5ec42f298e24bd63574f861148..73965f9e9cdba4f9e3f7dd53d163f07bce930612 100644 (file)
@@ -178,7 +178,16 @@ ldbm_back_group(
 #endif
 
 
-       if( value_find_ex( group_at, 0, attr->a_vals, op_ndn ) != LDAP_SUCCESS ) {
+#ifdef SLAP_NVALUES
+       if( value_find_ex( group_at,
+               SLAP_MR_ATTRIBUTE_VALUE_NORMALIZED_MATCH
+                       | SLAP_MR_ASSERTED_VALUE_NORMALIZED_MATCH,
+               attr->a_nvals ? attr->a_nvals : attr->a_vals,
+               op_ndn ) != LDAP_SUCCESS )
+#else
+       if( value_find_ex( group_at, 0, attr->a_vals, op_ndn ) != LDAP_SUCCESS )
+#endif
+       {
 #ifdef NEW_LOGGING
                LDAP_LOG( BACK_LDBM, DETAIL1, 
                        "ldbm_back_group: \"%s\" not in \"%s\": %s\n",