Registering The Plug-In Example; Running The Plug-In Example - Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual

Table of Contents

Advertisement

An Example Pre-Operation Plug-in
Code Example 4-2
# SOLARIS Makefile for Directory Server plug-in examples
#
CC = cc
LD = ld
INCLUDE_FLAGS = -I../include
CFLAGS = $(INCLUDE_FLAGS) -D_REENTRANT -KPIC
LDFLAGS = -G
OBJS = srchxmpl.o
all: srchxmpl.so
srchxmpl.so: $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS)
.c.o:
$(CC) $(CFLAGS) -c $<
clean:
-rm -f $(OBJS) srchxmpl.so

Registering the Plug-in Example

To register this example plug-in, you should do the following:
Create an LDIF configuration file in an ASCII text editor; see "Creating a
1.
Plug-in Configuration File," on page 47.
Load the plug-in configuration file; see "Loading the Plug-in Configuration
2.
File," on page 52.
Shut down the Directory Server.
3.
Restart the Directory Server.
4.
When you restart the Directory Server, it will read the entries in the
file, which contain the entry for you new plug-in. If all is done correctly, your
plug-in will now be loaded. (You may want to check the plug-ins list in the
Directory Server Console.)

Running the Plug-in Example

After compiling the plug-in and registering it with the Directory Server, you're
ready to make calls that are processed by the plug-in functions.
The first step is to restart the Directory Server and check the error log to see that
the plug-in is properly registered. You should see the following line in the error
log:
60
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
Example Solaris Makefile
dse.ldif

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents