title: How to log on website using LDAP
body: <p>I have very limited knowledge on LDAP so please forgive my saying anything stupid.</p>
  
  <p>I try to design a module that allows user to <code>log on</code> current <code>Spring application</code> via <code>LDAP</code>. I guess if user log on the system via LDAP so the Spring application should be able to identify the user by the <code>uid</code> or something so user no long need to log on the system anymore.</p>
  
  <p>The development system is on Windows 7, and I have installed <code>Apache DS</code> and <code>Apache DS Studio</code> on my STS, also follow online tutorial to setup proper <code>role</code> and <code>user</code> in a new partition. Now the questions are:</p>
  
  <pre><code>How can I "link" my web application to the LDAP user? 
  
  And how can I log on LDAP server with one of the user credential?
  </code></pre>
  
  <p>Please share any advice. Thanks.</p>