HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
# /opt/dirsrv/slapd-instance_name/start-slapd
2. By using the ldapmmodify command.
a. You can also add the above entry by running the ldapmodify command on the
slapd-diopInstance server with the LDIF input file containing the above entry. For
example, your command might look like this:
# ldapmodify -h host -p port -w password \
-D cn=directory manager -vcaf ldif_file_containing_the_entry#
After you add the above entry to the server configuration, the DIOP functionality is
enabled in the server.
Note:
An example plug-in is shipped with the server to show how a DIOP preoperation plug-in can
be used to work with the DIOP-enabled server. For details about the sample plug-in, see “Sample
DIOP plug-in”. To use the sample plug-in or your own custom plug-in in the server, see “Using
the DIOP feature”.
13.3 Using the DIOP feature
This section explains how you can verify whether the DIOP feature works in Directory Server.
After you have successfully installed and configured two instances of Directory Servers, as
explained in the preceding sections, follow the instructions in this section.
To help you understand the DIOP feature, a sample plug-in is provided. Details of this plug-in
is covered in “Using the DIOP feature”. It is recommended that you review the sample plug-in
first and use that as an example to develop your own plug-in.
To verify the DIOP feature, you may use the sample plug-in or reconfigure Directory Server to
use your own plug-in. You can also remove the plug-in altogether from the server.
1. If you want to use the sample plug-in, first build the plug-in, then load it into the server:
a. Shut down your DIOP-enabled Directory Server.
b. Go to the directory in which the sample plug-in is located.
cd /opt/dirsrv/devel/example
c. Build the plug-in.
make
d. Modify the /etc/opt/dirsrv/slapd-instance_name/dse.ldif file to include
an entry for the plug-in. For instructions on to modify the dse.ldif file, refer to “Using
the DIOP feature”. The entry shown below is for the sample plug-in.
dn: cn=datainterop,cn=plugins,cn=config
objectClass: top
objectClass: nsSlapdPlugin
cn: datainterop
nsslapd-pluginPath: /opt/dirsrv/devel/example/libtest-plugin.so
nsslapd-pluginInitfunc: nullsuffix_init
nsslapd-pluginType: preoperation
nsslapd-pluginEnabled: on
nsslapd-pluginId: nullsuffix-preop
nsslapd-pluginVersion: 7.1
nsslapd-pluginVendor: HP
nsslapd-pluginDescription: sample preoperation null suffix plugin
e. Restart the server to load the modified configuration.
# /opt/dirsrv/slapd-instance_name/restart-ds-admin
2. If you want to reconfigure the server to use your own plug-in:
13.3 Using the DIOP feature 111