for ( a = e->e_attrs; a != NULL; a = a->a_next ) {
AttributeDescription *desc = a->a_desc;
if ( desc == slap_schema.si_ad_entryUUID ) {
- ber_dupbv( &entryuuid_bv, &a->a_vals[0] );
+ ber_dupbv( &entryuuid_bv, &a->a_nvals[0] );
}
}
slog_e = (struct slog_entry *) ch_calloc (1, sizeof( struct slog_entry ));
a = attr_find( e->e_attrs, slap_schema.si_ad_entryUUID );
- ber_dupbv( &slog_e->sl_uuid, &a->a_vals[0] );
+ ber_dupbv( &slog_e->sl_uuid, &a->a_nvals[0] );
ber_dupbv( &slog_e->sl_name, &e->e_name );
ber_dupbv( &slog_e->sl_csn, &op->o_sync_csn );
LDAP_STAILQ_INSERT_TAIL( &sop->o_sync_slog_list, slog_e, sl_link );
Backend *be = op->o_bd;
slap_callback cb;
struct berval *syncuuid_bv = NULL;
+ struct berval syncUUID_strrep = { 0, NULL };
SlapReply rs = {REP_RESULT};
Filter f = {0};
f.f_choice = LDAP_FILTER_EQUALITY;
f.f_ava = &ava;
ava.aa_desc = slap_schema.si_ad_entryUUID;
- rc = asserted_value_validate_normalize(
- ava.aa_desc, ad_mr(ava.aa_desc, SLAP_MR_EQUALITY),
- SLAP_MR_EQUALITY, syncUUID, &ava.aa_value, &text, op->o_tmpmemctx );
- if ( rc != LDAP_SUCCESS ) {
- return rc;
- }
+ slap_uuidstr_from_normalized( &syncUUID_strrep, syncUUID, op->o_tmpmemctx );
+ ava.aa_value = *syncUUID;
op->ors_filter = &f;
op->ors_filterstr.bv_len = (sizeof("entryUUID=")-1) + syncUUID->bv_len;
done :
- if ( ava.aa_value.bv_val ) {
- ber_memfree_x( ava.aa_value.bv_val, op->o_tmpmemctx );
+ if ( syncUUID_strrep.bv_val ) {
+ ber_memfree_x( syncUUID_strrep.bv_val, op->o_tmpmemctx );
}
if ( si->si_syncUUID_ndn.bv_val ) {
ber_memfree_x( si->si_syncUUID_ndn.bv_val, op->o_tmpmemctx );