HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Shut down your DIOP-enabled Directory Server.a.
b. Open the /etc/opt/dirsrv/slapd-instance_name/dse.ldif file in a text editor.
c. Modify the cn=datainterop,cn=plugins,cn=config entry, which holds the
plug-in information, with data from your proprietary database plug-in.
d. After you have done the required changes, restart the server to load the modified
configuration.
# /opt/dirsrv/slapd-instance_name/start-slapd
3. If you want to delete the sample plug-in from the server:
a. Shut down your DIOP-enabled Directory Server.
b. Open the /etc/opt/dirsrv/slapd-instance_name/dse.ldif file in a text editor.
c. Delete the cn=datainterop,cn=plugins,cn=config entry, which holds the plug-in
information.
d. Restart the server to load the modified configuration.
# /opt/dirsrv/slapd-instance_name/start-slapd
You can also use the ldapmodify command to make these changes.
13.4 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”, explains how you can use the sample plug-in. The next section,
“Debugging the plug-in”, explains how to troubleshoot the plug-in.
The sample plug-in is located in the /opt/dirsrv/devel/example directory. The shared
library for the plug-in is named libtest-plugin.so and is implemented by the following:
testdatainterop.c[.h]
testdbinterop.c
db.h
which is 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 back ends (database
or files) but returns observable output uniformly to verify that the functions in the
preoperation plug-in have been accessed and executed for different LDAPoperations.
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 preoperation plug-in are identified
by the function calls used in the testdatainterop.c (to illustrate the use and simplify
understanding).
112 Using data interoperability plug-ins