Processing an LDAP Modify RDN Operation
The modify RDN 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
•
If the RDN of the entry contains attribute values that are not part of the entry
(for example, if the RDN is "uid=bjensen" but the entry has no uid value or has
a different uid value), the function should call
send the LDAP error code
•
If the requestor does not have permission to modify 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 modify RDN function is successful, the function should call
slapi_send_ldap_result()
and should return 0.
88
Netscape Directory Server Plug-In Programmer's Guide • May 2002
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
to send an LDAP error code to
parameter. If the value is 1, the
to send a referral and return -1.
slapi_send_ldap_result()
slapi_entry_schema_check()
slapi_send_ldap_result()
slapi_send_ldap_result()
LDAP_NOT_ALLOWED_ON_RDN
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
slapi_pblock_get()
and return -1.
and should return -1.
and should return -1.
code back to the client
to send
to
to send
to
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