Creating a Plug-in Configuration File
In this example, the plug-in depends on two specifically named plug-ins:
my_pluginA
your 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
error code.
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 the
type
successfully 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 53.
Specifying the Order of Plug-in Directives
You cannot in general rely on plug-ins being called in a certain order. For
example, you cannot rely on a particular pre-operation plug-in to be called before
another. You should ensure that your plug-in is written in such a way as to make
it independent of the order in which it will be called.
If you must use ordering, you can make use of alphabetical order. The server
loads the plug-ins in alphabetical order—that is, the loading order is determined
by standard ASCII ordering of the
under
deprecated in a future version of the product, it is recommended that you write
your plug-in not to rely on any specific loading order.
52
Netscape Directory Server Plug-in Programmer's Guide • October 2004
and
vendor_plugin
nsslapd-plugin-depends-on-type
. If there is a configured plug-in of type
syntax
error code.
-1
cn=plugins,cn=config
. This configuration line indicates that before
syntax
value of the plug-in entry, which appears
cn
in the
file. Because this feature may be
dse.ldif
attribute in your plug-in
, it must be
-1
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers