Set SLAPI_REQUESTOR_ISROOT for internal operations

This commit is contained in:
Luke Howard 2005-07-22 05:14:42 +00:00
parent 6da978d5a0
commit c477ad064f

View File

@ -265,12 +265,16 @@ slapi_int_pblock_get_operation( Slapi_PBlock *pb, Operation *op, SlapReply *rs )
if ( isRoot || requestorDn == NULL ) { if ( isRoot || requestorDn == NULL ) {
op->o_dn = op->o_bd->be_rootdn; op->o_dn = op->o_bd->be_rootdn;
op->o_ndn = op->o_bd->be_rootndn; op->o_ndn = op->o_bd->be_rootndn;
isRoot = 1;
} else { } else {
op->o_ndn.bv_val = requestorDn; op->o_ndn.bv_val = requestorDn;
op->o_ndn.bv_len = strlen( requestorDn ); op->o_ndn.bv_len = strlen( requestorDn );
op->o_dn = op->o_ndn; 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 ); rc = slapi_int_pblock_get_connection( pb, op );
if ( rc != LDAP_SUCCESS ) { if ( rc != LDAP_SUCCESS ) {
return rc; return rc;