title: LDAP search user based on certificate in Linux command line
body: <p>I want to search a user using ldapsearch, but the hosting provider gave me a certificate from the CA. I added that certificate in my ldapconf.</p>
  <p>Before executing the <code>ldapsearch</code> command I am running <code>openssl</code> as follows</p>
  <pre><code>openssl s_client -connect hostname -CAfile /certificate.pem
  </code></pre>
  <p>After connecting via <code>openssl</code>, I execute the following command in another terminal</p>
  <pre><code>ldapsearch -h hostname -p portno -D uid=mailid@domain.con, dc=global,dc=example,dc=net 
  </code></pre>
  <p>Now I want to know, is there any way to use the certificate while executing the <code>ldapsearch</code> command?</p>