After you compile your server plug-in, you need to configure the Netscape
Directory Server (Directory Server) so that it properly loads your plug-in. The
following sections in this chapter show how this is done:
•
Creating a Plug-In Configuration File
•
Loading the Plug-In Configuration File
•
Passing Extra Arguments to Plug-Ins
•
Setting the Log Level of the Server
Creating a Plug-In Configuration File
To add your plug-in to the Directory Server configuration, you need to create an
LDIF representation of your plug-in entry, add the plug-in entry to the Directory
Server configuration, and reload the server configuration. This section illustrates
how to create your plug-in entry. The section "Loading the Plug-In Configuration
File," on page 44 explains how to add the plug-in entry to the Directory Server
configuration and reload the server configuration.
The plug-in configuration file must be an LDIF file written in ASCII format. Code
Example 3-1 shows the contents of an example plug-in configuration file. Note that
line numbers have been added for ease of reference; do not number the lines in
your own LDIF file.
Code Example 3-1
1. dn: cn=Example Plug-in,cn=plugins,cn=config
2. objectclass: top
3. objectclass: nsSlapdPlugin
4. objectclass: extensibleObject
Configuring Plug-Ins
An Example Plug-In Configuration File
Chapter 3
39
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - PLUG-IN and is the answer not in the manual?
Questions and answers