From c477ad064fe73a71cd071cc5039d176a21d46ddb Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 22 Jul 2005 05:14:42 +0000 Subject: [PATCH] Set SLAPI_REQUESTOR_ISROOT for internal operations --- servers/slapd/slapi/slapi_ops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/slapi/slapi_ops.c b/servers/slapd/slapi/slapi_ops.c index 2b8b6a6b22..2c66afc2a0 100644 --- a/servers/slapd/slapi/slapi_ops.c +++ b/servers/slapd/slapi/slapi_ops.c @@ -265,12 +265,16 @@ slapi_int_pblock_get_operation( Slapi_PBlock *pb, Operation *op, SlapReply *rs ) if ( isRoot || requestorDn == NULL ) { op->o_dn = op->o_bd->be_rootdn; op->o_ndn = op->o_bd->be_rootndn; + isRoot = 1; } else { op->o_ndn.bv_val = requestorDn; op->o_ndn.bv_len = strlen( requestorDn ); op->o_dn = op->o_ndn; } + if ( isRoot ) + slapi_pblock_set( pb, SLAPI_REQUESTOR_ISROOT, (void *)isRoot ); + rc = slapi_int_pblock_get_connection( pb, op ); if ( rc != LDAP_SUCCESS ) { return rc; -- 2.39.5