Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 549

Table of Contents

Advertisement

slapi_op_reserved()
Allows a plug-in to recognize reserved default operations, such as the base-scope
search on the rootdse and the operations on the reserved naming contexts, for
handling by the core Directory Server and not by the DIOP plug-in.
Syntax
#include "slapi-plugin.h"
int slapi_op_reserved(Slapi_PBlock *pb);
Parameter
This function takes the following parameter:
pb
Returns
This function returns 0 if the operation is not reserved and a non-zero value if the
operation is reserved.
Description
This function allows you to implement a custom DIOP plug-in that does not affect
the default behavior of the server. The code snippet below is a sample for a plug-in
that handles the LDAP delete operation. The callback for the LDAP delete
operation
reserved-naming contexts (such as
#define PLUGIN_OPERATION_HANDLED
#define PLUGIN_OPERATION_IGNORED
static int
nullsuffix_delete( Slapi_PBlock *pb )
{
}
Parameter block.
nullsuffix_delete
if( slapi_op_reserved(pb) ){
return PLUGIN_OPERATION_IGNORED;
}
slapi_log_error( SLAPI_LOG_PLUGIN, PLUGIN_NAME,
/* do the deletes */
send_ldap_result( pb, LDAP_SUCCESS, NULL, NULL, 0, NULL );
return PLUGIN_OPERATION_HANDLED;
will ignore all the LDAP delete operations on the
,
cn=schema
cn=config
0
1
"nullsuffix_delete\n" );
Functions Related to Data Interoperability
, and
cn=monitor
Chapter 15
Function Reference
).
549

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Directory server 6.2

Table of Contents