Latest Release
- Release candidate 2.0rc2 (07/03/12)
- Release candidate 2.0rc1 (23/12/11)
- Stable version 1.2.2 (09/02/12)
- Nightly builds available to test
Events
- 10/10/2011 - LDAPCon 2011 (Heidelberg, Germany)
- 13/06/2011 - RMLL (Strasbourg, France)
- 9/07/2010 - RMLL (Bordeaux, France)
Community
Get help, contribute or find professional services ...
Find out more!
Search
Download | Read more... | Get started!
SSL and TLS activation
LSC can encrypt communication with a LDAP server, using either the StartTLS operation (on standard LDAP port, 389) or via SSL (on a specific port, 636).
Configuring LSC
TLS (StartTLS operation)
You can use the startTLS extended operation to secure a connection on the standard 389 port. This feature is available since LSC 1.1.0.
To enable TLS on the LDAP connection, set the following property in lsc.properties:
dst.java.naming.tls = true
Replace “dst” with “src” above if necessary.
SSL
You can use SSL to create a secure tunnel. This implies to use ldaps:// URI in lsc.properties:
dst.java.naming.provider.url = ldaps://localhost/
Replace “dst” with “src” above if necessary.
Trusting the certificate
Choose one of the two options below to get your server's certificate trusted.
Global use: LSC will use system-wide JVM Truststore
First step, add the CA certificate (which signed the LDAP server certificate) in the JVM running LSC.
This tutorial is written from http://java.sun.com/products/jndi/tutorial/ldap/security/ssl.html#CLIENT
First, go to the security folder of your JVM installation:
cd /usr/java/jdk1.5.0_16/jre/lib/security/
Then import the CA certificate (we suppose it is in a file named cacert.pem):
../../bin/keytool -import -file /path/to/cacert.pem -keystore jssecacerts
Specific use: LSC will use its own truststore
This is exactly the same procedure as described above. But, at the end, LSC will use its own truststore instead of the system-wide JVM truststore.
First step, copy the JVM truststore to your LSC installation:
cp /usr/java/jdk1.5.0_16/jre/lib/security/cacerts /usr/local/lsc/etc
Then import the new certicate into this truststore:
/usr/java/jdk1.5.0_16/bin/keytool -import -file /path/to/certificate.pem \ -keystore /usr/local/lsc/etc/cacerts
Now, edit the shell script that launches LSC synchronization tasks. We suppose this is /usr/local/lsc/bin/lsc. Replace the following line:
$JAVA_HOME/bin/java -cp $CLASSPATH org.lsc.Launcher $*
by this line:
$JAVA_HOME/bin/java -cp $CLASSPATH \ -Djavax.net.ssl.trustStore=$CFG_DIR/cacerts \ -Djavax.net.ssl.trustStorePassword=changeit \ org.lsc.Launcher $*


