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!
General task options
This section describes available options to configure a LSC task. You should replace TASKNAME by a task name specified in the global configuration option lsc.tasks.
Overview
lsc.tasks.TASKNAME.object
The full name of the JAVA class to use for plain LDAP object. For example, for person, you could use org.lsc.objects.inetOrgPerson. Be careful that this class has to exist in this instance of LSC.
lsc.tasks.TASKNAME.bean
The full name of the JAVA BEAN class to use for specialisation of the synchronization. For example, for person, you could use org.lsc.beans.inetOrgPersonBean. Be careful that this class has to exist in this instance of LSC.
lsc.tasks.TASKNAME.type
The synchronisation type for this task between the two defined services. Available options are ldap2ldap and db2ldap.
Advanced features
Conditions
You can specify conditions for the 4 actions create, update, delete and modrdn. These conditions are written in JavaScript.
For example :
lsc.tasks.TASKNAME.condition.create = 1 > 0 lsc.tasks.TASKNAME.condition.update = srcBean.getAttr('updateTimeStamp') > dstBean.getAttr('updateTimeStamp') lsc.tasks.TASKNAME.condition.delete = false lsc.tasks.TASKNAME.condition.modrdn = false
In the condition create you have access to the srcBean.
In the condition update you have access to the srcBean and dstBean.
In the condition delete you have access to the srcBean.
In the condition modrdn you have access to the srcBean and dstBean.
The DN
You can set the dn of the object in the configuration. You can use Javascript and you have access to the srcBean.
Example:
lsc.tasks.TASKNAME.dn = 'cn=' + srcBean.getAttributeValueById('uid')
Note: To never change the DN, set this property to ”” (the empty string). In this case, LSC will ignore MODRDN operations. This will also stop LSC from creating objects, since they have no DN.


