ITS#7019 fix dsa-specific attr check for Persist updates

This commit is contained in:
Howard Chu 2011-11-07 15:23:58 -08:00
parent 3bb0c6746f
commit a4df185adf
2 changed files with 5 additions and 0 deletions

View file

@ -991,6 +991,7 @@ syncprov_qtask( void *ctx, void *arg )
op->o_hdr = &opbuf.ob_hdr;
op->o_controls = opbuf.ob_controls;
memset( op->o_controls, 0, sizeof(opbuf.ob_controls) );
op->o_sync = SLAP_CONTROL_IGNORED;
*op->o_hdr = *so->s_op->o_hdr;

View file

@ -1303,6 +1303,10 @@ slap_send_search_entry( Operation *op, SlapReply *rs )
{
continue;
}
/* if DSA-specific and replicating, skip */
if ( op->o_sync != SLAP_CONTROL_NONE &&
desc->ad_type->sat_usage == LDAP_SCHEMA_DSA_OPERATION )
continue;
} else {
if ( !userattrs && !ad_inlist( desc, rs->sr_attrs ) ) {
continue;