Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 165

Table of Contents

Advertisement

Table 13-2 Elements of Pre-Operation Plug-In
Description of the
Plug-In
Initialization of the
Plug-In by the Server
Reserved Naming
Contexts
(cn=schema,
cn=config,
cn=monitor)
#define PLUGIN_NAME
static Slapi_PluginDesc plugindesc = { PLUGIN_NAME,
"Netscape", "6.1",
plugin"
}
nullsuffix_init( Slapi_PBlock *pb )
In this function, all the callbacks are set up and will be called by the server for
each LDAP operation.
Flag used for LDAP operation
SLAPI_PLUGIN_PRE_SEARCH_FN
SLAPI_PLUGIN_PRE_ADD_FN
SLAPI_PLUGIN_PRE_MODIFY_FN
SLAPI_PLUGIN_PRE_DELETE_FN
SLAPI_PLUGIN_PRE_BIND_FN
SLAPI_PLUGIN_PRE_MODRDN_FN
slapi_op_reserved(pb) is called to determine whether the operation
should be handled internally by
base on which the operation is applied is a reserved naming context). If
slapi_op_reserved() returns a non-zero value, the plug-in does not
attempt to handle that operation. It is done by the following code snippet:
if( slapi_op_reserved(pb) ){
return PLUGIN_OPERATION_IGNORED;
}
See testdatainterop.c for details.
The slapi_op_reserved() function, which can be used for reserving some of
the naming contexts in the Directory Server (cn=schema, cn=config,
cn=monitor), is called first in the database plug-in and then the call for turning
off access control.
"nullsuffix-preop"
"sample pre-operation null suffix
Callback
nullsuffix_search
nullsuffix_add
nullsuffix_modify
nullsuffix_delete
nullsuffix_bind
nullsuffix_modrdn
Directory Server
Chapter 13
Using Data Interoperability Plug-Ins
Sample DIOP Plug-In
(for example, whether the
165

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents