Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 176

Table of Contents

Advertisement

Sample DIOP Plug-in
Elements of Pre-Operation Plug-in (Continued)
Table 13-2
Reserved Naming
Contexts
(cn=schema,
cn=config,
cn=monitor)
Sparse Tree Support
Access Control
Null Suffix Support
Building the Data
Interoperability Plug-in
174
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
slapi_op_reserved(pb) is called to determine whether the operation
should be handled internally by
base on which the operation is applied is a reserved naming context. If
slapi_op_reserved() returns a non-zero value, the plug-in does not
attempt to handle that operation. It is done by the following code snippet:
if( slapi_op_reserved(pb) ){
return PLUGIN_OPERATION_IGNORED;
}
See testdatainterop.c for details.
The slapi_op_reserved() function, which can be used for reserving some of
the naming contexts in the Directory Server (cn=schema, cn=config,
cn=monitor), is called first in the database plug-in and then the call for turning
off access control.
Any modifications done to the server on the null suffix are processed by the
plug-in. The plug-in writes the DN of all modifications received to a standalone
BerkleyDB, 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 database 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 164.
The compiler used on Solaris is Forte. For example:
cd /opt/redhat-ds/plugins/slapd/slapi/examples
gmake
<libtest-plugin.so is generated>
Directory Server
; for example, whether the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents