LDAP_STOP_TLS

Use the LDAP_STOP_TLS API or LDAP routine to abandon an open LDAP connection over TLS.

  • ldap_stop_tls_s_np

Synopsis

#include ldap.h

int ldap_stop_tls_s_np(
	LDAP		*ld)

Input parameters

ld
Specifies the LDAP pointer that is used in the ldap_start_tls_s_np() call.

Usage

The ldap_stop_tls_s_np() API is used to end the TLS session on a connection.

This call closes the connection to the server.

Errors

ldap_stop_tls_s_np() returns LDAP_SUCCESS if the call was successful, an LDAP error if the call was unsuccessful.

See also

ldap_start_tls_s_np, ldap_ssl_environment_init, ldap_ssl_client_init