title: How do I solve ldap_start_tls() "Unable to start TLS: Connect error" in PHP?
body: <p>I'm getting:</p>
  
  <blockquote>
    <p>Warning: ldap_start_tls()
    [function.ldap-start-tls]: Unable to
    start TLS: Connect error in
    /var/www/X.php on line Y</p>
  </blockquote>
  
  <p>/etc/ldap/ldap.conf:</p>
  
  <pre><code>TLS_CACERT     /etc/ssl/certs/ca.crt
  </code></pre>
  
  <p><code>ca.crt</code> is the CA which signed the LDAP server certificate. The certificate on the LDAP server is expired and I can't change it.</p>