Skip to content
Function : LDAP
ldap_delete_ext_s - Initiate a synchronous ldap delete operation with controls.

#include <ldap.h>
int LNPUBLIC ldap_delete_ext_s(

    LDAP *ld,
    const char *dn,
    LDAPControl **serverctrls,
    LDAPControl **clientctrls);
Description :

This function will initiate a synchronous ldap delete operation with controls.

Note that the entry to delete must be a leaf entry (i.e., it must have no children). Deletion of entire subtrees in a single operation is not supported by LDAP.

Implemented as a macro:

define ldap_delete_ext_s(ld, dn, sctrls, cctrls) ND_ldap_delete_ext_s((ld),

(dn), (sctrls), (cctrls))

Parameters : Input : ld - The LDAP session handle.

dn - The distinguished name of the entry to delete. If NULL, a zero length DN is sent to the server.

serverctrls - Pointer to a list of LDAP server controls. NULL if no server controls are to be used.

clientctrls - Pointer to a list of LDAP client controls. NULL if no client controls are to be used.

Output : (routine) - LDAP_SUCCESS - If the request was successfully sent, or another LDAP result code if not.

See Also :