]> git.sur5r.net Git - openldap/commitdiff
Set SLAPI_REQUESTOR_ISROOT for internal operations
authorLuke Howard <lukeh@openldap.org>
Fri, 22 Jul 2005 05:14:42 +0000 (05:14 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 22 Jul 2005 05:14:42 +0000 (05:14 +0000)
servers/slapd/slapi/slapi_ops.c

index 2b8b6a6b2294f643ba233190a8d0d28c7215dce0..2c66afc2a0e7a6625de5c92098692f35706539d1 100644 (file)
@@ -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;