mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Set SLAPI_REQUESTOR_ISROOT for internal operations
This commit is contained in:
parent
6da978d5a0
commit
c477ad064f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user