Plug-In Type Dependencies; Specifying The Order Of Plug-In Directives - Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual

Table of Contents

Advertisement

Creating a Plug-In Configuration File
In this example, the plug-in depends on two specifically named plug-ins:
my_pluginA
plug-in can be loaded, the two specifically named plug-ins must be loaded. If either
of these two plug-ins fail to load, the Directory Server will exit with a

Plug-In Type Dependencies

If you specify the
configuration file, set its value to one or more plug-in types. For example, in your
plug-in configuration file, you could specify the following:
nsslapd-plugin-depends-on-type: syntax
This configuration line indicates that your plug-in depends on any plug-in of type
syntax
loaded before your plug-in can be loaded, otherwise the Directory Server will exit
with a
Note that if you specify a plug-in type dependency, the Directory Server will
search for any and all plug-ins of the type(s) specified. If none are found,
processing will continue without errors. However, the Directory Server must load
all plug-ins of the type(s) specified before it can load your plug-in. For a complete
list of the supported plug-in types, refer to the "Summary of Plug-In Directives,"
on page 43.

Specifying the Order of Plug-In Directives

Plug-ins of different types can be listed in any order. For example:
plugin preoperation \
/usr/netscape/servers/lib/plugin.so pr_init_fn
plugin postoperation /usr/netscape/servers/lib/plugin.so \
po_init_fn
(In the example above, initialization functions and plug-in functions for
preoperation and postoperation plug-ins have been defined in the same library.)
You can also load different plug-ins of the same type. Plug-ins of the same type are
loaded and called in the order in which they are listed in the configuration file. For
example:
plugin preoperation \
/usr/netscape/servers/lib/plugin.so pre_fn_1
plugin preoperation \
/usr/netscape/servers/lib/plugin2.so pre_fn_2
42
Netscape Directory Server Plug-In Programmer's Guide • May 2002
and
vendor_plugin
nsslapd-plugin-depends-on-type
. If there is a configured plug-in of type
error code.
-1
. This configuration line indicates that before your
syntax
error code.
-1
attribute in your plug-in
, it must be successfully

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents