title: Login to ldap with uid instead of cn in DN input
body: <p>I'm running into a problem using LDAP to authenticate logins.</p>
  
  <p>I already created a user with all basic info and try to login through phpldapadmin with detail :</p>
  
  <pre><code>Login DN: cn=Sample User,ou=people,dc=example,dc=om
  Password: xxxx
  </code></pre>
  
  <p>then it can login.</p>
  
  <p>But when i try to use with this :</p>
  
  <pre><code>Login DN: uid=sampleuser,ou=people,dc=example,dc=om
  Password: xxxx
  </code></pre>
  
  <p>it never works (cannot login).</p>
  
  <p>Please tell me what should i config?</p>