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
On Windows platforms, make sure to link to the
(located under the
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 39.
Load the plug-in configuration file; see "Loading the Plug-In Configuration
2.
File," on page 44.
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.)
52
Netscape Directory Server Plug-In Programmer's Guide • January 2002
Example Solaris Makefile
<server_root>\plugins\slapd\slapi\lib
import library
libslapd.lib
directory).
dse.ldif
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