Release candidate 1.0.0-rc.4
Pre-release
Pre-release
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]