49.2. slapi_operation_set_flag()

Description

This function sets the specified flag for the operation. The code sample demonstrates how the flag for the operation is to be set:

Slapi_Operation *op;
if ( slapi_pblock_get( pb, SLAPI_OPERATION, &op ) != 0 ) {
slapi_operation_set_flag( op, SLAPI_OP_FLAG_NO_ACCESS_CHECK );
}
Syntax

#include "slapi-plugin.h"
void slapi_operation_set_flag( Slapi_Operation *op, unsigned long flag)

Parameter
This function takes the following parameters:
op
Operation data structure.
flag
Flag to be set. By default, only one flag is supported, the SLAPI_OP_FLAG_NO_ACCESS_CHECK flag, which specifies that access control should not be checked.