Latest Release
- Release candidate 2.0rc1 (23/12/11)
- Beta version 2.0 (06/07/11)
- Stable version 1.2.1 (15/07/10)
- 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!
Synchronization RulesSynchronization rules, also called syncOptions are defined through the lsc.syncoptions property. This section describes synchronization rule options available. You should replace TASKNAME by a task name specified in the global configuration option lsc.tasks. lsc.syncoptions.TASKNAMEThis is the full name of the JAVA class used to provide synchronization option mechanism. For this instance of LSC, you must use the org.lsc.beans.syncoptions.PropertiesBasedSyncOptions value. lsc.syncoptions.TASKNAME.default.actionDefault action on the destination directory. Here, three values are possible :
See the matrix below for details on these options. lsc.syncoptions.TASKNAME.<ATTRIBUTE>.create_valueSpecify the value for <ATTRIBUTE> in a newly created object in the destination. Note that if present, this value will be used for <ATTRIBUTE> if it's action type is K, F or M (and if <ATTRIBUTE> is in the lsc.tasks.TASKNAME.dstService.attrs list). This can contain a simple text value (between quotes) or a JavaScript function. Examples: lsc.syncoptions.TASKNAME.description.create_value = \ "Default description for new users" lsc.syncoptions.TASKNAME.employeeType.create_value = \ srcBean.getAttributeValueById("type") lsc.syncoptions.TASKNAME.uid.create_value = \ ldap.attribute("cn=Values,o=company", "nextUidNumber") lsc.syncoptions.TASKNAME.<ATTRIBUTE>.default_valueSpecify the value for <ATTRIBUTE> in an existing entry in the destination, if it doesn't already have a value (if the action type is F and if <ATTRIBUTE> is in the lsc.tasks.TASKNAME.dstService.attrs list). This is useful for importing data into a directory that may be modified later, so that we don't overwrite it. This can contain a simple text value (between quotes) or a JavaScript function. Examples: lsc.syncoptions.TASKNAME.allowAccessToHomePhone.default_value = FALSE lsc.syncoptions.TASKNAME.<ATTRIBUTE>.force_valueSpecify the value for <ATTRIBUTE> in the destination if the action type is F, regardless of existing values (if <ATTRIBUTE> is in the lsc.tasks.TASKNAME.dstService.attrs list). This can contain a simple text value (between quotes) or a JavaScript function. Examples: lsc.syncoptions.TASKNAME.cn.force_value = \ srcBean.getAttributeValueById("givenName") \ + " " + srcBean.getAttributeValyeById("sn").toUpperCase() delimiter - Multiple value separationYou may specify multiple values in one property, if you want to populate a multi-valued attribute. By default, values are separated by a semi-colon (;). For example: lsc.syncoptions.TASKNAME.description.force_value = "one";"two";"three" However, if you want, you can change the delimiter used to separate values, either for all attributes or for any given attribute, as follows: lsc.syncoptions.TASKNAME.default.delimiter = $ lsc.syncoptions.TASKNAME.description.delimiter = $ Note: This is particularly useful if you want to write multiple JavaScript statements in a property, and need to use the semi-colon (;) to separate statements, and not values. Functionality matrixDepending on the action configured for an attribute, the different *_values specified and the values in the source for this attribute name, LSC's behavior varies:
| ||||||||||||||||


