mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
SLAP_NVALUES updates
This commit is contained in:
parent
338355d30b
commit
676349481f
@ -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++;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user