How do a LDAP search/authenticate against this LDAP in Java
Another approach is using UnboundID. Its api is very readable and shorter Create a Ldap Connection public static LDAPConnection getConnection() throws LDAPException { // host, port, username and password return new LDAPConnection(“com.example.local”, 389, “[email protected]”, “admin”); } Get filter result public static List<SearchResultEntry> getResults(LDAPConnection connection, String baseDN, String filter) throws LDAPSearchException { SearchResult searchResult; if (connection.isConnected()) … Read more