Transact

⌘K
  1. Home
  2. Transact
  3. System Configuration
  4. User Connectivity
  5. LDAP and OpenLDAP Resourc...
  6. Add Users to LDAP Using Java

Add Users to LDAP Using Java

Topic : Adding users to LDAP using a Java Class

Applicable Ephesoft versions:

Normally LDAP requires the user to log in to the LDAP database with the jxplorer application. By using the Java class provided, you can add users by altering the user details in the .java file below.

Download: AddEntryToLDAP.java

Instructions:

There are two methods of executing this .java file.

  1. Create a new project in eclipse and execute this through the UI after configuring your user in the script
  2. Compile and run the Class from the command prompt
    1. Create a new directory
    2. Copy the AddEntryToLDAP.java file to this directory
    3. Open a command prompt
    4. Make sure that the path has been set for the JDK in windows. Locate your JDK install path and execute the following command ‘set path=%path%;C:\Program Files\Java\jdk1.8.0_60\bin’
    5. Navigate to the directory holding the AddEntryToLDAP.java file
    6. Execute the following command in order to compile the .java file. ‘javac AddEntryToLDAP.java’
    7. Execute the following command in order to execute the compiled application. ‘java AddEntryToLDAP’

 

|Documentation Main Page|How To Articles| Downloads and Updates|