3.9.10. 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.9. UseSSL. UseTLS enables StartTLS LDAP operation to upgrade 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
UseTLS
Tip
If both UseSSL and UseTLS are specified, UseSSL is prioritised.
Note
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.