HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
nsslapd-pluginPath: /opt/dirsrv/devel/example/libtest-plugin.so
nsslapd-pluginInitfunc: testmatchrule_init
nsslapd-pluginType: matchingRule
nsslapd-pluginEnabled: on
nsslapd-pluginId: test-matchingrule
nsslapd-pluginarg0: /etc/opt/dirsrv/slapd-host1/filename.conf
11.9 Specifying start and close functions
For each matching rule operation plug-in, you can specify the name of a function to be called
after the server starts and before the server is shut down. These functions take a single
Slapi_PBlock argument.
The following table summarizes the different parameters that the initialization function should
get and set in the parameter block that is passed in.
Table 11-8 Input and output parameters available to a matching rule plug-in initialization function
DescriptionData typeParameter name
Output parameter. The function called after the
Directory Server starts up.
void * (function
pointer)
SLAPI_PLUGIN_START_FN
Output parameter. The function called before the
Directory Server shuts down.
void * (function
pointer)
SLAPI_PLUGIN_CLOSE_FN
If you register multiple plug-ins with different start and close functions, the functions are called
in the order that the plug-ins are registered; in other words, in the order that the plugin directives
appear in the server configuration file.
100 Writing matching rule plug-ins