title: Java API to query LDAP
body: <p>I am looking to query LDAP server to retrieve all the user entries from it. I have come across some libraries</p>
  
  <ol>
  <li><a href="http://www.openldap.org/jldap/overview.html" rel="noreferrer">OpenLDAP</a></li>
  <li><a href="https://www.unboundid.com/products/ldapsdk/" rel="noreferrer">LDAP SDK</a></li>
  <li><a href="https://wiki.mozilla.org/Directory" rel="noreferrer">Mozilla Directory</a></li>
  <li><a href="http://directory.apache.org/api/" rel="noreferrer">Apache Directory API</a></li>
  </ol>
  
  <p>My requirements would be to query all users in an LDAP implementation like AD Server, ease of programming and good community around the library. I don't find a clear winner here. Can someone tell me the widely used and robust API?</p>