Sample DIOP Plug-In
b.
c.
d.
You can also use the
Sample DIOP Plug-In
To help you understand the DIOP feature, a sample DIOP plug-in is included with
Directory Server. This section provides an overview of the sample plug-in and
explains how you can use the plug-in to verify whether the DIOP feature works in
Directory Server. The preceding section, "Using the DIOP Feature," on page 162
explains how you can use the sample plug-in. The next section, "Debugging the
Plug-In," on page 166 explains how you can trobleshoot the plug-in.
The sample plug-in is located in the
<server_root>/plugins/slapd/slapi/examples
for the plug-in is named
testdatainterop.c[.h]
testdbinterop.c
db.h
located in the same directory.
Note the following:
•
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).
164
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Open the
<server_root>/slapd-<diopInstance>/config/dse.ldif
in a text editor.
Delete the
cn=datainterop,cn=plugins,cn=config
the plug-in information.
Restart the server to load the modified configuration.
ldapmodify
libtest-plugin.so
command to make these changes.
directory. The shared library
and is implemented by
testdatainterop.c
file
entry, which holds
(to illustrate the