Processing An Ldap Modify Operation - Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual

Table of Contents

Advertisement

Processing an LDAP Modify Operation

Processing an LDAP Modify Operation
When the Directory Server receives an LDAP modify request from a client, the
front-end gets the DN of the entry to be modified and the modifications to be
made. 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_MODIFY_TARGET
SLAPI_MODIFY_MODS
The modify function should check the following:
If the operation has been abandoned, the function should return -1. (You do
not need to call
the client. According to the LDAP protocol, the client does not expect a server
response after an operation is abandoned.)
If the entry is a referral entry (an entry with the object class "ref") and no
manageDSAIT control is included with the request, the function should call
slapi_str2filter()
To determine if a manageDSAIT control is present, call
to get the value of the
control is included in the request. If 0, the control is not included in the request.
If the entry does not exist, check the following:
If the entry is not schema-compliant (call
determine this), the function should call
the LDAP error code
86
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Data Type
char *
LDAPMod **
slapi_send_ldap_result()
to send a referral and return -1.
SLAPI_MANAGEDSAIT
If the closest matching entry is a referral entry and if no manageDSAIT
control is included in the request, the function should call
slapi_send_ldap_referral()
Otherwise, the function should call
an LDAP error code
LDAP_NO_SUCH_OBJECT
LDAP_OBJECT_CLASS_VIOLATION
Description
DN of the entry to be modified.
A NULL-terminated array of LDAPMod
structures, which represent the
modifications to be performed on the entry.
to send an LDAP error code to
slapi_pblock_get()
parameter. If the value is 1, the
to send a referral and return -1.
slapi_send_ldap_result()
and return -1.
slapi_entry_schema_check()
slapi_send_ldap_result()
and should return -1.
to send
to
to send

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents