title: LDAP Authentication failed: Invalid Credentials
body: <p>In Gforge, when a new user tries to log in; the user is automatically registered by fetching data from LDAP. It works fine for other users but one particular user is not able to log in and gets the error LDAP Authentication failed: Invalid Credentials . I don't understand what could be the issue? Could you please help?
  This is the search function I am using. </p>
  
  <pre><code>ldap_bind($ldap, $dn, $pw)
  $dn = ldap_get_dn($ldap, $entry);
  $entry = ldap_first_entry($ldap,$res);
  $res=ldap_search($ldap, $sys_ldap_base,$sys_ldap_id_attribute . '=' . $id,
                 array());
  </code></pre>