Java API to query LDAP

active-directory, java, ldap

Solution

The best API to use with Java is the UnboundID LDAP SDK. It's clear, complete, fully implements the LDAP standard specification, easy-to-use and understand, fully documented, thread-safe where it should be, and the standard edition is free. No other API even comes close.

see also

- LDAP Examples using the UnboundID LDAP SDK

Problem

I am looking to query LDAP server to retrieve all the user entries from it. I have come across some libraries - OpenLDAP - LDAP SDK - Mozilla Directory - Apache Directory API 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?

Original source