Show Table of Contents
1.4. Using Directory Server Plug-in APIs
When using Directory Server plug-in APIs, you should be aware of the following:
- Plug-in files and examples are installed separately from other Directory Server packages, available at the Fedora Directory Server CVS repos, https://git.fedorahosted.org/cgit/389/ds.git/tree/ldap/servers/plugins and https://git.fedorahosted.org/cgit/389/ds.git/tree/ldap/servers/slapd/test-plugins. These sample plug-in files can be installed in any directory.
- The main header file is /usr/lib64/dirsrv/plugins/slapi-plugin.h. On some systems, the
389-ds-base-develpackage installs this header file automatically in/usr/include/dirsrv/slapi-plugin.h. - Plug-in directives are contained in the
/etc/dirsrv/slapd-instance/dse.ldiffile. These plug-in configuration entries can be added or modified using LDAP tools likeldapmodifyor by stopping the server and manually editing thedse.ldiffile. (Either way, the server must be restarted before the plug-in changes take effect.)See chapter 2, "Core Server Configuration Reference," in the Configuration, Command, and File Reference for information on the syntax of thedse.ldiffile. - Database plug-ins are not supported in Directory Server. Be sure to use the pre-operation, post-operation, or extended operation API to register plug-in functions.
- To comply with IPv6, Red Hat Directory Server Plug-in Guide can use the
SLAPI_CONN_CLIENTEDADDRandSLAPI_CONNSERVERADDRparameters to allow plug-ins to recognize the IP address of the LDAP client and server. These new parameters use the Netscape Portable Runtime (NSPR)PRNetAddrstructure for storing the IP addresses. Because of this, the NSPR files are either shipped with Directory Server or are available from the operating system'snspr-develpackage, with the header files installed in/usr/include/nspr4.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 independent of platform.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.