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

2015-08-03 Thread William Brown
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_OPERATIO

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

2015-08-03 Thread Ludwig Krispenz
you can use: slapi_operation_is_flag_set(pb->pb_op, OP_FLAG_INTERNAL); or slapi_op_internal(pb) Ludwig On 08/03/2015 08:35 AM, William Brown wrote: Hi, I can see that in a plugin we can determine if the operation is a replicate operation with: int is_repl = 0; slapi_pblock_get(pb, SLAPI_IS_REP

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

2015-08-02 Thread William Brown
Hi, I can see that in a plugin we can determine if the operation is a replicate operation with: int is_repl = 0; slapi_pblock_get(pb, SLAPI_IS_REPLICATED_OPERATION, &is_repl); Is there a way to determine if the operation is from internal to the ds instance as well? I can't see anything obvious.