title: Ldap socket option - ldapjs
body: <p>I am trying to connect to an LDAP server from my node.js application using ldapjs module. I'm following the <a href="http://ldapjs.org/client.html" rel="nofollow noreferrer">documentation</a>. </p>
  
  <p>I would like to know more about the <code>socketPath</code> option and when it has to be used. I would also like to know how to add the <code>socketPath</code> to the <code>createClient</code> option. There's hardly any info about this on web.</p>
  
  <p>I think the server is on UNIX domain socket. Not sure, want to test it. </p>
  
  <p>Also, Please help me how to construct the socket path with port number as a single string. </p>