From: Kurt Zeilenga Date: Sun, 16 Mar 2003 06:03:23 +0000 (+0000) Subject: SLAP_NVALUES updates X-Git-Tag: NO_SLAP_OP_BLOCKS~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=676349481f418f6d04964e405dbf9f57d988a090;p=openldap SLAP_NVALUES updates --- diff --git a/servers/slapd/back-bdb/attribute.c b/servers/slapd/back-bdb/attribute.c index f5cbdf7577..921491753f 100644 --- a/servers/slapd/back-bdb/attribute.c +++ b/servers/slapd/back-bdb/attribute.c @@ -202,11 +202,22 @@ dn2entry_retry: if( conn != NULL && op != NULL && access_allowed(be, conn, op, e, entry_at, - &attr->a_vals[i], ACL_AUTH, &acl_state ) == 0) +#ifdef SLAP_NVALUES + attr->a_nvals ? &attr->a_nvals[i] : &attr->a_vals[i], +#else + &attr->a_vals[i], +#endif + ACL_AUTH, &acl_state ) == 0) { continue; } + +#ifdef SLAP_NVALUES + ber_dupbv( &v[j], + attr->a_nvals ? &attr->a_nvals[i] : &attr->a_vals[i] ); +#else ber_dupbv( &v[j], &attr->a_vals[i] ); +#endif if( v[j].bv_val != NULL ) j++; } diff --git a/servers/slapd/back-bdb/passwd.c b/servers/slapd/back-bdb/passwd.c index 685a187cbd..d825c782be 100644 --- a/servers/slapd/back-bdb/passwd.c +++ b/servers/slapd/back-bdb/passwd.c @@ -219,7 +219,7 @@ retry: /* transaction retry */ ml.sml_desc = slap_schema.si_ad_userPassword; ml.sml_values = vals; #ifdef SLAP_NVALUES - ml.sml_nvalues = vals; + ml.sml_nvalues = NULL; #endif ml.sml_op = LDAP_MOD_REPLACE; ml.sml_next = NULL;