Debugging The Plug-In - Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual

Table of Contents

Advertisement

Sample DIOP Plug-In
Table 13-2 Elements of Pre-Operation Plug-In (Continued)
Sparse Tree Support
Access Control
Null Suffix Support
Building the Data
Interoperability Plug-In

Debugging the Plug-In

If you need to debug the plug-in installed on a Solaris machine, you can use dbx:
1.
cd <server_root>/bin/slapd/server
2.
setenv NETSITE_ROOT <server_root>
3.
dbx ns-slapd
4.
run -d 65536 -D <server_root>/slapd-<diopInstance>
Once the server starts up and error logs show that the server has started, press
5.
Control C
6.
stop in <user-defined-function-in-the-plugin>
Similar steps can be done on other platforms, using the platform-specific
debuggers and commands.
166
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Any mods done to the server on the null suffix are processed by the plug-in. The
plug-in writes the DN of all mods received to a standalone Berkley db, and
trying a simple test using LDIF entries without the required object classes or
parent entries will still get processed by the server, populating the db created by
the plug-in.
See nullsuffix_modify and testdbinterop.c for details.
The plug-in has not been coded for the retrieval of those entries, but has been
coded to demonstrate sparse tree support only.
Switching off access control for the operation is done by:
slapi_operation_set_flag(op, SLAPI_OP_FLAG_NO_ACCESS_CHECK
);
See testdatainterop.c for details.
The plug-in cannot control the support for null-suffix in the server. The support
for null-suffix is done through configuration modification of the server as
shown in "Installing Directory Server," on page 156.
The compiler used on Solaris 8 is Forte 6.2. For example:
cd <server_root>/plugins/slapd/slapi/examples
gmake
<libtest-plugin.so is generated>
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents