I need to write some Java code to connect to an LDAP server to verify that the user supplied LDAP account info is correct, and then I need to get attribute names from the server which this user can see. Is there some recommended Java client library for this ? If yes, which one ?
Thanks in advance!
I would recommend, as have some others, the UnboundID LDAP SDK.
Generally, I would recommend avoiding JNDI for new code in favor of the UnboundID LDAP SDK for the following reasons.
The UnboundID LDAP SDK:
There are examples at the blog, and at the sample code site.
If you plan to use Maven, the dependency is:
<dependency>
<groupId>com.unboundid</groupId>
<artifactId>unboundid-ldapsdk</artifactId>
<version>2.3.1</version>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With