From: Luke Howard Date: Fri, 22 Jul 2005 05:14:42 +0000 (+0000) Subject: Set SLAPI_REQUESTOR_ISROOT for internal operations X-Git-Tag: OPENLDAP_AC_BP~264 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c477ad064fe73a71cd071cc5039d176a21d46ddb;p=openldap Set SLAPI_REQUESTOR_ISROOT for internal operations --- 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;