title: LDAP: How to authenticate user with connection details
body: <p>I am not able to authenticate a user using LDAP. I have got following details:</p>
  
  <pre><code>URL=ldap://10.10.10.10:389 
  LDAP BASE:DC=lab2,DC=ins 
  LDAP Bind Account: CN=Ldap Bind,OU=Service Accounts,OU=TECH,DC=lab2,DC=ins 
  LDAP Bind Account Pw: secret 
  </code></pre>
  
  <p>I can search a <code>sAMAccountName</code> value using above details, but how to authenticate a user with user name and password?<br/>
  If you follow my previous questions then you will understand that, I am successfully able to connect to LDAP server but not able to authenticate him.<br/>
  User to authenticate:</p>
  
  <pre><code>user: someusername
  password: somepwd
  </code></pre>
  
  <p>I am not able to connect to LDAP server with <code>'somepwd'</code> and how should I use <code>someusername</code>. I am able to search given user as <code>sAMAccountName</code>.</p>