Loading The Plug-In Configuration File - Netscape DIRECTORY SERVER 6.01 - PLUG-IN Manual

Table of Contents

Advertisement

Loading the Plug-In Configuration File

Directives for Specifying Different Plug-In Types (Continued)
Table 3-1
Directive
preoperation
syntax
object
pwdstoragescheme
Loading the Plug-In Configuration File
After you have written the plug-in configuration file, you must load it into the
dse.ldif
<server_root>/slapd-<instance_id>/config
by using an LDAP utility, such as
choose to edit the file directly, be sure to shut down the Directory Server first.
The following line shows an example of an LDAP command that loads the plug-in
defined in the configuration file
ldapmodify -h my_host -p 389 -a -D "cn= Directory Manager" \
-w adminadmin -f example-plugin.ldif
44
Netscape Directory Server Plug-In Programmer's Guide • January 2002
Description
Declares a pre-operation/data validation plug-in, which is called by the server
before performing an LDAP operation.
Example of use: You can define a data validation function to check new entries
before they are added to the directory.
Declares a syntax plug-in, which is called by the server when getting a list of
possible candidates for a search, when determining how to compare values in
searches, and when adding or deleting values from certain attribute indexes.
Example of use: You can define a function that specifies how the "equals"
comparison works for case-insensitive strings.
Declares an object plug-in. Object plug-ins can install
SLAPI_PLUGIN_START_FN, SLAPI_PLUGIN_CLOSE_FN, and
SLAPI_PLUGIN_POSTSTART_FN functions. They can also use the
slapi_register_plugin() call to register any kind of plug-in they like.
Object plug-ins are typically used to simplify configuration of a group of related
plug-ins (one entry under cn=config instead of many).
Example of use: You can use this type when your plug-in doesn't fit in any of
the other types listed in this table. For example, if your plug-in does more than
one thing, then you should use this directive. This type of plug-in will typically
register the types of operations it wants to handle using the internal API.
This directive will be supported in the future.
file, which is located in the
directory. You can do this either
, or by editing the file directly. If you
ldapmodify
example-plugin.ldif
:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents