Platform SDK: Active Directory, ADSI, and Directory Services

ldap_delete_ext_s

The ldap_delete_ext_s function is an extended routine that performs a synchronous operation to remove a leaf entry from the directory tree.

ULONG ldap_delete_ext_s(
  LDAP* ld,
  PCHAR dn,
  PLDAPControl* ServerControls,
  PLDAPControl* ClientControls
);

Parameters

ld
[in] The session handle.
dn
[in] The distinguished name of the entry to delete.
ServerControls
[in] List of LDAP server controls.
ClientControls
[in] List of client controls.

Return Values

If the function succeeds, the return value is LDAP_SUCCESS.

If the function fails, it returns an error code. See Return Values for more information.

Remarks

Call ldap_delete_ext_s to remove a leaf entry from the directory tree. (Note that LDAP does not support deletion of entire subtrees in a single operation.) The parameters and effects of ldap_delete_ext_s subsume those of ldap_delete_s. The extended routine includes additional parameters to support client and server controls and thread safety.

As a synchronous function, ldap_delete_ext_s returns when the delete operation is complete. Use ldap_delete or ldap_delete_ext if you want the delete operation to be carried out asynchronously.

Multithreading: Calls to ldap_delete_ext_s are thread-safe.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Winldap.h.
  Library: Use Wldap32.lib.
  Unicode: Declared as Unicode and ANSI prototypes.

See Also

Functions, ldap_delete, ldap_delete_ext, ldap_delete_s, Modifying a Directory Entry, Return Values