mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
Set SLAPI_REQUESTOR_ISROOT for internal operations
This commit is contained in:
parent
6da978d5a0
commit
c477ad064f
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue