Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 175

Table of Contents

Advertisement

The main goal of the sample plug-in is to show how to create a simple plug-in
that supports data interoperability.
The plug-in does not attempt to create any usable functionality to access
backends (database or files) but returns observable output uniformly to verify
that the functions in the pre-operation plug-in have been accessed and
executed for different LDAP operations.
The plug-in demonstrates the use of APIs, which meet the requirements of the
DIOP feature.
In the following table, the various required elements of the pre-operation plug-in
are identified by the function calls used in the
use and simplify understanding).
Table 13-2
Elements of Pre-Operation Plug-in
Description of the
Plug-in
Initialization of the
Plug-in by the Server
#define PLUGIN_NAME
static Slapi_PluginDesc plugindesc = { PLUGIN_NAME, "Red
Hat", "7.1",
"sample pre-operation null suffix 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
testdatainterop.c
"nullsuffix-preop"
Callback
nullsuffix_search
nullsuffix_add
nullsuffix_modify
nullsuffix_delete
nullsuffix_bind
nullsuffix_modrdn
Chapter 13
Using Data Interoperability Plug-ins
Sample DIOP Plug-in
(to illustrate the
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents