Skip to content

Release candidate 1.0.0-rc.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@sshanks-kx sshanks-kx released this 28 Nov 12:20

New function .ldap.startTLS

Using ldaps:// (with the appropriate TLS/SSL options) will perform the TLS handshake automatically on connection. An alternative is to use .ldap.startTLS for initialising a TLS handshake on a normal ldap connection (calls ldap_start_tls_s)

.ldap.startTLS 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.

Syntax: .ldap.startTLS[sess]