diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index d9715cbf71..d39fe38535 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -1109,7 +1109,8 @@ static int translucent_search(Operation *op, SlapReply *rs) { filter2bv_x( op, fr, &op->ors_filterstr ); } rc = ov->db.bd_info->bi_op_search(op, rs); - op->ors_attrs = tc.attrs; + if ( op->ors_attrs == slap_anlist_all_attributes ) + op->ors_attrs = tc.attrs; op->o_bd = tc.db; if ( fl ) { op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );