Skip to content
Snippets Groups Projects
Commit c477ad06 authored by Luke Howard's avatar Luke Howard
Browse files

Set SLAPI_REQUESTOR_ISROOT for internal operations

parent 6da978d5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment