Re: [389-devel] Determine if operation is internal or not
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 -- 389-devel mailing list 389-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/389-devel
Re: [389-devel] Determine if operation is internal or not
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_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. Sincerely, -- 389-devel mailing list 389-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/389-devel