HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
3. Shut down the Directory Server.
4. Restart the Directory Server.
To restart the Directory Server; you can either use the Directory Server Console or use the
restart-slapd script.
# /opt/dirsrv/slapd-instance_name/restart-slapd
When you restart the Directory Server, it will read the entries in the dse.ldif file, which contains
the entry for your new plug-in. It is a good idea to check the plug-ins list in the Directory Server
Console to ensure that your plug-in loaded.
4.4 Running the plug-in
After compiling the plug-in and registering it with the Directory Server, you can make calls that
are processed by the plug-in functions.
The first step is to restart the Directory Server and check the error log to see that the plug-in is
properly registered. You should see the following line in the error log:
Error log messsage here!
Verify that the plug-ins log level is selected. Error logging is controlled with the
nsslapd-errorlog-level attribute in cn=config. For the plug-ins log level, set this value
to 65536 or set an OR for the current value to 65536. (The sample source code logs messages to
the error log with the plug-ins severity level.)
If the plug-in is properly registered, you can then perform a few searches against the directory.
The preoperation search plug-in function should write data about each search to the error log.
46 An example plug-in