Skip to content

Latest commit

 

History

History
96 lines (68 loc) · 2.93 KB

nf-winldap-ldap_unbind.md

File metadata and controls

96 lines (68 loc) · 2.93 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_unbind
ldap_unbind function (winldap.h)
The ldap_unbind function frees resources associated with an LDAP session.
_ldap_ldap_unbind
ldap.ldap__unbind
ldap.ldap_unbind
ldap_unbind
ldap_unbind function [LDAP]
winldap/ldap_unbind
ldap\ldap_unbind.htm
ldap
5d8b3198-3935-4305-b0f1-eaf1a9355cf3
12/05/2018
_ldap_ldap_unbind, ldap.ldap__unbind, ldap.ldap_unbind, ldap_unbind, ldap_unbind function [LDAP], winldap/ldap_unbind
winldap.h
Windows
Windows Vista
Windows Server 2008
Wldap32.lib
Wldap32.dll
Windows
19H1
ldap_unbind
winldap/ldap_unbind
c++
APIRef
kbSyntax
DllExport
Wldap32.dll
ldap_unbind

ldap_unbind function

-description

The ldap_unbind function frees resources associated with an LDAP session.

-parameters

-param ld [in]

The session handle.

-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_unbind to unbind from the directory, close the connection, and dispose of the session handle. Call this function when you have finished with an LDAP connection structure, even if you have not called ldap_bind when opening the connection. Ensure that you do not inadvertently call this function more than once on a session handle because doing so can free resources that you did not intend to release.

The ldap_unbind function is for the asynchronous set of APIs, but it completes synchronously. There is no server response to an unbind operation.

Multithreading: Calls to ldap_unbind are safe, but you cannot use the session handle to the LDAP structure after it has been freed.

-see-also

Functions

LDAP

Return Values

ldap_bind

ldap_unbind_s