Chapter 3 Configuring Plug-Ins; Creating A Plug-In Configuration File - Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual

Table of Contents

Advertisement

After you compile your server plug-in, you need to configure the Red Hat
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 (page 47)
Loading the Plug-in Configuration File (page 52)
Passing Extra Arguments to Plug-ins (page 52)
Setting the Log Level of the Server (page 54)

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 52, 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. 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
47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents