[389-devel] Determine if operation is internal or not

William Brown william at blackhats.net.au
Tue Aug 4 02:27:47 UTC 2015


On Mon, 2015-08-03 at 12:32 +0200, Ludwig Krispenz wrote:
> you can use:
> slapi_operation_is_flag_set(pb->pb_op, OP_FLAG_INTERNAL);
> or
> slapi_op_internal(pb)


This got me on the right path:

    int is_internal = 0;
    Slapi_Operation *operation = NULL;
    slapi_pblock_get(pb, SLAPI_OPERATION, &operation);
    is_internal = slapi_operation_is_flag_set(operation,
SLAPI_OP_FLAG_INTERNAL);

Thanks for your help!


-- 
William Brown <william at blackhats.net.au>


More information about the 389-devel mailing list