![Netscape NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION Manual Download Page 84](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-2-gateway-customization/netscape-directory-server-6-2-gateway-customization_manual_1674642084.webp)
Processing an LDAP Compare Operation
84
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
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.
The compare function should call
slapi_send_ldap_result()
to send
LDAP_COMPARE_TRUE
if the specified value is equal to the value of the entry’s
attribute or
LDAP_COMPARE_FALSE
if the values are not equal.
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()
to send an LDAP error code and should return 1.
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
Data Type
Description
SLAPI_COMPARE_TARGET
char *
DN of the entry to be compared.
SLAPI_COMPARE_TYPE
char *
Attribute type to use in the comparison.
SLAPI_COMPARE_VALUE
struct
berval *
Attribute value to use in the comparison
Parameter ID
Data Type
Description
SLAPI_ADD_TARGET
char *
DN of the entry to be added.
SLAPI_ADD_ENTRY
Slapi_Entry *
The entry to be added (specified as the
opaque
Slapi_Entry
datatype).
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Page 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Page 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Page 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...