Home Contact Download
Open source connector to synchronize identities to a LDAP directory from any data source including any database with a JDBC connector, another LDAP server or flat files ...
Download  |  Read more...  |  Get started!

Real-world use-case tutorial

Introduction

Because the real world does not just work out of the box, like our Quickstart tutorial, this page presents a 'real world' use case of Ldap Synchronization Connector.

We're aiming to replace HSQLDB as an embedded database, and OpenDS as an embedded directory…

Generate synchronization engine stubs

Then check that all needed directories are created and launch your first engine creation:

ant -Dgenerator.parameters='-soc simpleAccount -db -d ../../src/impl/java' lsc::_generator

Launching the synchronization

In a console, set the ANT_HOME environment variable and launch the following command. To launch the synchronization process, you just need to specify the different tasks:

ant -Dsynchronize.parameters='-s other' lsc::clean lsc::sample lsc::synchronize

Run it in your favorite IDE

If you want to run it in your favorite IDE, do not forget to set the correct working directory!

  • Eclipse

Go into the menu item RunDebug …, create a new Java Application by setting the main class file to org.lsc.Launcher, then select the Arguments pane and set the program arguments to '-s all' and the working directory to Other with the value '$workspace_loc:lsc/target/classes'