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

Table of Contents

Advertisement

Using Directory Server Plug-in APIs
Table 0-1
Deprecated Functions and Their Suggested Replacements
Deprecated Function
The following functions that deal with bervals are deprecated and their use is not recommended. For each
deprecated function, you will find in slapi-plugin.h a corresponding function with an _sv extension
that uses Slapi_Values instead of bervals. The new functions are more efficient than the old ones.
slapi_entry_attr_merge()
slapi_entry_add_values()
22
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
/opt/redhat-ds/plugins/slapd/slapi/
The main header file is located here:
/opt/redhat-ds/plugins/slapd/slapi/include/slapi-plugin.h
The location and syntax for you to add the plug-in directives are in the
file, which is located in the
dse.ldif
/opt/redhat-ds/slapd-instance_id/config
the
file located here:
Readme
/opt/redhat-ds/plugins/slapd/slapi/examples/
Database plug-ins are not supported in this version of Directory Server. Be
sure to use the pre-operation, post-operation, and/or extended operation API
to register plug-in functions. Some code examples in this book are yet to be
updated to reflect this change.
To comply with Internet Protocol version 6, Directory Server plug-ins can use
the
SLAPI_CONN_CLIENTEDADDR
allow plug-ins to recognize the IP address of the LDAP client and server.
These new parameters use the Netscape Portable Runtime (NSPR)
structure for storing the IP addresses. Because of this, the NSPR files are
shipped with Directory Server.
The NSPR API allows compliant applications to use system facilities such as
threads, thread synchronization, I/O, interval timing, atomic operations, and
several other low-level services in a platform-independent manner.
Several functions have been deprecated in this release of the Directory Server
Plug-in API. The deprecated functions are still supported for backward
compatibility. They are, however, not documented in this release. The table
below lists the deprecated functions and the functions you should use in their
place. If you need additional information on functions that have been
deprecated, check this file:
/opt/redhat-ds/plugins/slapd/slapi/include/slapi-plugin-compat4
.h
directory. For guidelines, refer to
and
SLAPI_CONNSERVERADDR
Suggested Replacement Function
slapi_entry_attr_merge_sv()
slapi_entry_add_values_sv()
parameters to
PRNetADDr

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents