This project focuses on providing complimentary example codes to the operations possible with UnboundID Java SDK in accessing LDAP server.
Recommended to first go through :
- Have a LDAP server setup for the experimentation (in the project SSL protocol is followed).
-
In the
environment.properties, specify the environment variables that are to be used in establishing the connection with the LDAP.serverAddress = <ldap_server_address> portNumber = <ldap_port_number> bindDN = <bind_dn> password = <password> -
In the
config.properties, specify the variables that are to be used for other purposes across the project.Example, in the SearchLDAP class, the following configs are used :
toSearchBaseDN = <base_dn_which_is_to_be_queried> toSearchAttribute = <search_attribute_which_is_to_be_queried> -
Proceed with the Java programs.
Using the Maven repo, include the following in the pom.xml :
<!-- https://mvnrepository.com/artifact/com.unboundid/unboundid-ldapsdk -->
<dependency>
<groupId>com.unboundid</groupId>
<artifactId>unboundid-ldapsdk</artifactId>
<version>RELEASE</version>
</dependency>