ITS#10440 slapo-memberof: do not propagate request controls to internal ops

This commit is contained in:
Ondřej Kuzník 2026-02-05 16:15:03 +00:00 committed by Quanah Gibson-Mount
parent 663d956922
commit 73a97a774a

View file

@ -292,6 +292,8 @@ memberof_isGroupOrMember( Operation *op, memberof_cbinfo_t *mci )
op2.ors_slimit = 1;
op2.ors_tlimit = SLAP_NO_LIMIT;
memset( op2.o_ctrlflag, 0, sizeof(op2.o_ctrlflag) );
if ( mci->what & MEMBEROF_IS_GROUP ) {
SlapReply rs2 = { REP_RESULT };
@ -389,6 +391,8 @@ memberof_value_modify(
op2.orm_no_opattrs = 1;
op2.o_dont_replicate = 1;
memset( op2.o_ctrlflag, 0, sizeof(op2.o_ctrlflag) );
/* main op has already completed if we got here, so even
* if its abandon flag was set we must complete as well. */
op2.o_abandon = 0;
@ -568,6 +572,8 @@ memberof_addcheck( Operation *op )
mo_addcheck_t ma;
SlapReply rs = {REP_SEARCH};
memset( o.o_ctrlflag, 0, sizeof(o.o_ctrlflag) );
o.o_dn = op->o_bd->be_rootdn;
o.o_ndn = op->o_bd->be_rootndn;
o.o_bd->bd_info = (BackendInfo *)on->on_info;