ldap_start_tls, ldap_start_tls_s, ldap_tls_inplace, ldap_install_tls − LDAP TLS initialization routines


OpenLDAP LDAP (libldap, −lldap)


#include <ldap.h>

int ldap_start_tls(LDAP *ld);

int ldap_start_tls_s(LDAP *ld, LDAPControl **serverctrls, LDAPControl **clientctrls);

int ldap_tls_inplace(LDAP *ld);

int ldap_install_tls(LDAP *ld);


These routines are used to initiate TLS processing on an LDAP session. ldap_start_tls_s() sends a StartTLS request to a server, waits for the reply, and then installs TLS handlers on the session if the request succeeded. The routine returns LDAP_SUCCESS if everything succeeded, otherwise it returns an LDAP error code. ldap_start_tls() sends a StartTLS request to a server and does nothing else. It returns LDAP_SUCCESS if the request was sent successfully. ldap_tls_inplace() returns 1 if TLS handlers have been installed on the specified session, 0 otherwise. ldap_install_tls() installs the TLS handlers on the given session. It returns LDAP_LOCAL_ERROR if TLS is already installed.


ldap(3), ldap_error(3)


OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from University of Michigan LDAP 3.3 Release.

More Linux Commands

XkbFreeGeomKeyAliases(3) - Free geometry key aliases........
XkbFreeGeomKeyAliases.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify

gimp-2.8(1) an image manipulation and paint program.........
gimp-2.8.1 - GIMP is the GNU Image Manipulation Program. It is used to edit and manipulate images. It can load and save a variety of image formats and can be us

glTexGen(3gl) - control the generation of texture coordinate
glTexGen selects a texture-coordinate generation function or supplies coefficients for one of the functions. coord names one of the (s, t, r, q) texture coordin

gnome-options(7) - Standard Command Line Options for GNOME 2
This manual page describes the command line options, which are common to all Gnome applications. OPTIONS Help options -?, --help Show the applications help mess

options(n) - Standard options supported by widgets (ManPage)
This manual entry describes the common configuration options supported by widgets in the Tk toolkit. Every widget does not necessarily support every option (see

opts(3menu) - set and get menu options - Linux manual page
The function set_menu_opts sets all the given menus option bits (menu option bits may be logically-ORed together). The function menu_opts_on turns on the given

gmtime(3) - transform date and time to broken-down time or A
The ctime(), gmtime() and localtime() functions all take an argument of data type time_t, which represents calendar time. When interpreted as an absolute time v

snmpwalk(1) - retrieve a subtree of management values using
snmpwalk is an SNMP application that uses SNMP GETNEXT requests to query a network entity for a tree of information. An object identifier (OID) may be given on

xawtvrc(5) (File formats - Linux man page).................
xawtvrc is the config file originally used by xawtv only (thats why the name xawtvrc). These days a number of other TV applications / utilities read it too to g

glColorTableParameterfv(3gl) - set color lookup table parame
glColorTableParameter is used to specify the scale factors and bias terms applied to color components when they are loaded into a color table. target indicates

git-http-push(1) - Push objects over HTTP/DAV to another rep
Sends missing objects to remote repository, and updates the remote branch. NOTE: This command is temporarily disabled if your libcurl is older than 7.16, as the

msgcat(1) - combines several message catalogs (Man Page)....
Concatenates and merges the specified PO files. Find messages which are common to two or more of the specified PO files. By using the --more-than option, greate

We can't live, work or learn in freedom unless the software we use is free.