Skip to content

Latest commit

 

History

History
113 lines (77 loc) · 3.55 KB

nf-winldap-ldap_delete_sa.md

File metadata and controls

113 lines (77 loc) · 3.55 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winldap.ldap_delete_sA
ldap_delete_sA function (winldap.h)
The ldap_delete_s function is a synchronous operation that removes a leaf entry from the directory tree. (ldap_delete_sA)
ldap.ldap__delete__s
ldap_delete_sA
winldap/ldap_delete_sA
ldap\ldap_delete_s.htm
ldap
cded1b76-0fad-454f-bf5a-c500c9079f08
12/05/2018
_ldap_ldap_delete_s, ldap.ldap__delete__s, ldap.ldap_delete_s, ldap_delete_s, ldap_delete_s function [LDAP], ldap_delete_sA, ldap_delete_sW, winldap/ldap_delete_s, winldap/ldap_delete_sA, winldap/ldap_delete_sW
winldap.h
Windows
Windows Vista
Windows Server 2008
ldap_delete_sW (Unicode) and ldap_delete_sA (ANSI)
Wldap32.lib
Wldap32.dll
Windows
19H1
ldap_delete_sA
winldap/ldap_delete_sA
c++
APIRef
kbSyntax
DllExport
Wldap32.dll
ldap_delete_s
ldap_delete_sA
ldap_delete_sW

ldap_delete_sA function

-description

The ldap_delete_s function is a synchronous operation that removes a leaf entry from the directory tree.

-parameters

-param ld [in]

The session handle.

-param dn [in]

A pointer to a null-terminated string that contains the distinguished name of the entry to delete.

-returns

If the function succeeds, the return value is LDAP_SUCCESS.

If the function fails, it returns an error code. For more information, see Return Values.

-remarks

Call ldap_delete_s to remove a leaf entry from the directory tree. Be aware that LDAP does not support deletion of entire subtrees in a single operation. As a synchronous operation, ldap_delete_s does not return until the operation is compete. Use ldap_delete or ldap_delete_ext to perform the delete operation asynchronously.

Multithreading: The ldap_delete_s function is thread-safe.

Note  When connecting to an LDAP 2 server, the application must perform a bind operation, by calling one of the ldap_bind or ldap_simple_bind routines, before attempting any other operations.
 

-see-also

Functions

Modifying a Directory Entry

Return Values

ldap_bind

ldap_delete

ldap_delete_ext

ldap_simple_bind