Synchronously deletes the specified entry using LDAP client or server controls.
#include <ldap.h>
int ldap_delete_ext_s (
LDAP *ld,
const char *dn,
LDAPControl **serverctrls,
LDAPControl **clientctrls);
(IN) Points to the handle for the LDAP session.
(IN) Points to the distinguished name of the entry to delete.
(IN) Points to an array of LDAPControl structures that list the server controls to use with this delete. Use NULL to specify no server controls.
(IN) Points to an array of LDAPControl structures that list the client controls to use with this delete. Use NULL to specify no client controls.
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. For a complete list, see |
|
0x53 |
LDAP_ENCODING_ERROR |
|
0x5A |
LDAP_NO_MEMORY |
The entry specified for the delete must be a leaf entry. If the entry has children, the delete will fail. LDAP does not support the deletion of a subtree in a single operation.
eDirectory does not currently support any server-side controls for delete operations.
For sample code, see delentry.c.