Processing An Ldap Compare Operation; Processing An Ldap Add Operation - Netscape DIRECTORY SERVER 6.01 - PLUG-IN Manual

Table of Contents

Advertisement

Processing an LDAP Compare Operation

Processing an LDAP Compare Operation
When the Directory Server receives an LDAP compare request from a client, the
front-end gets the DN of the entry being compared and the attribute and value
being used in the comparison.
The front-end makes this information available to pre-operation and
post-operation plug-in functions in the form of parameters in a parameter block.
Parameter ID
SLAPI_COMPARE_TARGET
SLAPI_COMPARE_TYPE
SLAPI_COMPARE_VALUE
The compare function should call
LDAP_COMPARE_TRUE
attribute or
If successful, the compare function should return 0. If an error occurs (for example,
if the specified attribute doesn't exist), the compare function should call
slapi_send_ldap_result()

Processing an LDAP Add Operation

When the Directory Server receives an LDAP add request from a client, the
front-end normalizes the DN of the new entry. The front-end makes this
information available to pre-operation and post-operation plug-in functions in the
form of parameters in a parameter block.
Parameter ID
SLAPI_ADD_TARGET
SLAPI_ADD_ENTRY
84
Netscape Directory Server Plug-In Programmer's Guide • January 2002
Data Type
char *
char *
struct
berval *
if the specified value is equal to the value of the entry's
LDAP_COMPARE_FALSE
to send an LDAP error code and should return 1.
Data Type
char *
Slapi_Entry *
Description
DN of the entry to be compared.
Attribute type to use in the comparison.
Attribute value to use in the comparison
slapi_send_ldap_result()
if the values are not equal.
Description
DN of the entry to be added.
The entry to be added (specified as the
opaque Slapi_Entry datatype).
to send

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents