Plug-in Programmer’s Guide Red Hat Directory Server |
Previous |
Contents |
Index |
Next |
Preface
This book describes how to write server plug-ins in order to customize and extend the capabilities of the Red Hat Directory Server (Directory Server).
- What You Should Already Know
- Using Directory Server Plug-in APIs
- Document Conventions
- Where to Find Directory Server Information
What You Should Already Know
This book assumes you have this basic background:
- A general understanding of the Internet and the World Wide Web (WWW).
- A general understanding of the Lightweight Directory Access Protocol (LDAP) and the Directory Server. This book does not duplicate basic information on server administration or LDAP concepts. For such information, refer to the documents listed in "Where to Find Directory Server Information," on page 24.
- Programming experience in C or C++.
Using Directory Server Plug-in APIs
- server_root /plugins/slapd/slapi/
server_root /plugins/slapd/slapi/include/slapi-plugin.h
- The location and syntax for you to add the plug-in directives are in the dse.ldif file, which is located in the server_root /slapd- instance_id /config directory. For guidelines, refer to the Readme file located here:
server_root /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 and SLAPI_CONNSERVERADDR parameters to allow plug-ins to recognize the IP address of the LDAP client and server. These new parameters use the Netscape Portable Runtime (NSPR) PRNetADDr 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:
server_root /plugins/slapd/slapi/include/slapi-plugin-compat4.h
Document Conventions
The Directory Server runs on a number of different UNIX platforms; the information here applies to all versions.
This book uses Uniform Resource Locators (URLs) of the form
http://server.domain/path/file .htmlIn these URLs, server represents the name of the server on which you run your application (such as research1 or www), domain represents your Internet domain name (such as example.com), path represents the directory structure on the server, and file .html represents an individual filename.
If your server has Secure Sockets Layer (SSL) enabled, you would use https instead of http in the URL.
This book uses the following font conventions:
- The monospace font is used for sample code and code listings, API and language elements (such as function names and class names), filenames, pathnames, directory names, HTML tags, and any text that must be typed on the screen.
- Italic type is used for book titles, emphasis, placeholders, glossary terms, variables, and words used in the literal sense.
Where to Find Directory Server Information
This book explains how to write your own server plug-ins to customize the Directory Server. You can write plug-ins that validate data before the data is stored in the directory, that notify users when data has changed, or that replace the standard database in the Directory Server with your own database.
The document set for Directory Server also contains the following guides:
- Red Hat Directory Server Deployment Guide. Contains procedures for the day-to-day maintenance of your directory service. Includes information on configuring server-side plug-ins.
- Red Hat Directory Server Installation Guide. Contains procedures for installing your Directory Server as well as procedures for migrating from a previous installation of Directory Server.
- Red Hat Directory Server Administrator's Guide. Contains procedures for the day-to-day maintenance of your directory service. Includes information on configuring server-side plug-ins.
- Red Hat Directory Server Configuration, Command, and File Reference. Contains information about using the command-line scripts shipped with Directory Server.
- Red Hat Directory Server Schema Reference. Contains information about the Directory Server schema.
- Red Hat Directory Server Gateway Customization Guide. Introduces Directory Server Gateway and explains how to implement a gateway instance with basic directory look-up functionality. Also contains information useful for implementing a more powerful gateway instance with directory authentication and administration capability.
- Red Hat Directory Server Org Chart. Introduces the Red Hat Directory Server Org Chart application and explains how to integrate it with an instance of Directory Server.
- Red Hat Directory Server DSML Gateway Guide. Introduces the Red Hat Directory Server DSML Gateway function and explains how to customize it for use as an independent gateway.
For a list of documentation installed with Directory Server, open the server_root /manual/en/slapd/index.htm file, where server_root is the directory in which you installed Directory Server.
For the latest information about Directory Server, including current release notes, complete product documentation, technical notes, and deployment information, check this site:
http://www.redhat.com/docs/manuals/dir-server/
For a list of LDAP standards-related documents, check this site:
http://www.mozilla.org/directory/standards.html
Previous |
Contents |
Index |
Next |