3.9.9. UseTLS Previous topic Parent topic Child topic Next topic

This optional parameter is used in a similar way as UseSSL. For more information, see Section 3.9.8. UseSSL. UseTLS enables STARTTLS and forces the LDAP connection to use TLS authentication and encryption. UseTLS takes the same parameters as UseSSL, including SSLVerify, SSLCiphers, SSLCAPath, SSLCAFile, SSLCAClientCert, and SSLCAClientKey.
# Use STARTTLS with this LDAP server
If both UseSSL and UseTLS are specified, UseSSL is prioritised.
Net::LDAP 0.57 and earlier had a bug where LDAP + STARTTLS followed by LDAPS failed. This happens when a clause with UseTLS is followed by another clause with UseSSL.