/UnboundID-LDAP

Provides example codes on LDAP Queries accessed with UnboundID SDK for Java

Primary LanguageJavaMIT LicenseMIT

Java project for LDAP operations using UnboundID SDK

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 :

Steps for experimenting in the project

LDAP server

  1. Have a LDAP server setup for the experimentation (in the project SSL protocol is followed).

Java project

  1. 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>
    
  2. 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>
    
  3. Proceed with the Java programs.

Downloading the UnboundID SDK

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>

Other Reading Materials

Project based

ConnectLDAP :

SearchLDAP :