The add function should check the following:
•
If the operation has been abandoned, the function should return -1. (You do
not need to call
slapi_send_ldap_result()
the client. According to the LDAP protocol, the client does not expect a server
response after an operation is abandoned.)
•
If the entry already exists in the database, the function should call
slapi_send_ldap_result()
LDAP_ALREADY_EXISTS
•
If the parent entry (or the closest matching 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
return -1.
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 parent entry does not exist, the function should call
slapi_send_ldap_result()
LDAP_NO_SUCH_OBJECT
•
If the entry is not schema-compliant (call
determine this), the function should call
the LDAP error code
•
If the requestor does not have permission to add the entry (call
slapi_access_allowed()
slapi_send_ldap_result()
LDAP_INSUFFICIENT_ACCESS
You should also verify that the ACI syntax for the entry is correct (call
slapi_acl_check_mods()
If the add function is successful, the function should call
slapi_send_ldap_result()
and should return 0.
to send an LDAP error code
and should return -1.
slapi_str2filter()
SLAPI_MANAGEDSAIT
to send an LDAP error code
and return -1.
slapi_entry_schema_check()
slapi_send_ldap_result()
LDAP_OBJECT_CLASS_VIOLATION
to determine this), the function should call
to send the LDAP error code
and should return -1.
to determine this).
to send an
LDAP_SUCCESS
Chapter 7
Processing an LDAP Add Operation
to send an LDAP error code to
to send a referral and
slapi_pblock_get()
parameter. If the value is 1, the
and should return -1.
code back to the client
Defining Functions for LDAP Operations
to
to send
85
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.02 - PLUG-IN and is the answer not in the manual?
Questions and answers