[lsc-changes] r294 - in lsc-sample: branches/v1.1 branches/v1.1/etc trunk trunk/etc

jclarke at lsc-project.org jclarke at lsc-project.org
Fri Jul 17 17:52:09 CEST 2009


Author: jclarke
Date: 2009-07-17 17:52:09 +0200 (Fri, 17 Jul 2009)
New Revision: 294

Added:
   lsc-sample/branches/v1.1/etc/
   lsc-sample/branches/v1.1/etc/log4j.properties
   lsc-sample/branches/v1.1/etc/lsc.properties.dist
   lsc-sample/trunk/etc/
   lsc-sample/trunk/etc/log4j.properties
   lsc-sample/trunk/etc/lsc.properties.dist
Log:
Provide configuration directory. Refs #40.

Added: lsc-sample/branches/v1.1/etc/log4j.properties
===================================================================
--- lsc-sample/branches/v1.1/etc/log4j.properties	                        (rev 0)
+++ lsc-sample/branches/v1.1/etc/log4j.properties	2009-07-17 15:52:09 UTC (rev 294)
@@ -0,0 +1,18 @@
+log4j.rootLogger = WARN, CONSOLE
+
+log4j.logger.communicationLogger = WARN, CONSOLE
+log4j.logger.org.apache = WARN, CONSOLE
+log4j.logger.poolLogger = ERROR, CONSOLE
+log4j.logger.lsc = INFO, LSC
+
+log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout = org.lsc.utils.LocalizedJndiModificationsLayout
+log4j.appender.CONSOLE.layout.ConversionPattern = %-4r - %-5p - %m%n
+
+log4j.appender.LSC = org.apache.log4j.RollingFileAppender
+log4j.appender.LSC.File=/tmp/synchro.log
+log4j.appender.LSC.Append = false
+log4j.appender.LSC.Threshold = DEBUG
+log4j.appender.LSC.MaxFileSize = 10000KB
+log4j.appender.LSC.layout = org.lsc.utils.LocalizedJndiModificationsLayout
+log4j.appender.LSC.layout.ConversionPattern = %m%n

Added: lsc-sample/branches/v1.1/etc/lsc.properties.dist
===================================================================
--- lsc-sample/branches/v1.1/etc/lsc.properties.dist	                        (rev 0)
+++ lsc-sample/branches/v1.1/etc/lsc.properties.dist	2009-07-17 15:52:09 UTC (rev 294)
@@ -0,0 +1,163 @@
+#########################################################################
+# LDAP Synchronization Connector (LSC) - http://lsc-project.org         #
+# Main configuration file                                               #
+#########################################################################
+# Most configuration parameters for LSC are in this file.
+# All configuration files are located in this directory (etc)
+#
+# Configuration layout:
+# - etc/ (this directory)
+#	- lsc.properties (this file)
+#		main configuration file
+#	- log4j.properties
+#		configure logging to console, files and CSV/LDIF output
+#	- database.properties
+#		configure JDBC connector, host/port and credentiels
+#	- sql-map-config.xml
+#	- sql-map-config.d/
+#		- <name>.xml
+# 
+# For ldap2ldap connectors, you only need to configure this file and
+# log4j.properties.
+#########################################################################
+
+##############################
+# Destination LDAP directory #
+##############################
+# This section is mandatory since all synchronizations currently go to an LDAP directory.
+
+# Conection URL. This must include a valid LDAP context.
+dst.java.naming.provider.url = ldap://localhost:33389/dc=lsc-project,dc=org
+
+# Authentication type.
+# "none" causes an anonymous bind. "simple" performs a standard bind.
+dst.java.naming.security.authentication = simple
+
+# Bind DN to use if authentication type is "simple"
+dst.java.naming.security.principal = cn=Directory Manager,dc=lsc-project,dc=org
+
+# Bind password to use if authentication type is "simple"
+dst.java.naming.security.credentials = secret
+
+# Follow referrals in searches?
+# Allowed values are "ignore", "follow".
+dst.java.naming.referral = ignore
+
+# Dereference aliases in searches?
+# Allowed values are "never", "search", "find", "always"
+dst.java.naming.ldap.derefAliases = never
+
+# Standard properties. These should not be changed.
+dst.java.naming.factory.initial = com.sun.jndi.ldap.LdapCtxFactory
+dst.java.naming.ldap.version = 3
+
+#########################
+# Source LDAP directory #
+#########################
+# This section can safely be deleted if you are not using ldap2ldap synchronization.
+
+# Conection URL. This must include a valid LDAP context.
+src.java.naming.provider.url = ldap://localhost:33389/dc=lsc-project,dc=org
+
+# Authentication type.
+# "none" causes an anonymous bind. "simple" performs a standard bind.
+src.java.naming.security.authentication = simple
+
+# Bind DN to use if authentication type is "simple"
+src.java.naming.security.principal = cn=Directory Manager,dc=lsc-project,dc=org
+
+# Bind password to use if authentication type is "simple"
+src.java.naming.security.credentials = secret
+
+# Follow referrals in searches?
+# Allowed values are "ignore", "follow".
+src.java.naming.referral = ignore
+
+# Dereference aliases in searches?
+# Allowed values are "never", "search", "find", "always"
+src.java.naming.ldap.derefAliases = never
+
+# Standard properties. These should not be changed.
+src.java.naming.factory.initial = com.sun.jndi.ldap.LdapCtxFactory
+src.java.naming.ldap.version = 3
+
+#######################
+# Tasks configuration #
+#######################
+# This section defines the synchronization tasks for LSC.
+
+# List of defined tasks, seperated by commas
+lsc.tasks = FirstTask, SecondTask
+
+# Task type for task "FirstTask" (ldap2ldap or db2ldap)
+lsc.tasks.FirstTask.type = ldap2ldap
+
+
+# Java class name for the service to read objects from the source
+# Either "org.lsc.jndi.SimpleJndiSrcService" for ldap2ldap, or
+# "org.lsc.service.<objectName>JdbcService" for db2ldap
+lsc.tasks.FirstTask.srcService = org.lsc.jndi.SimpleJndiSrcService
+
+### SimpleJndiSrcService parameters
+# The parameters in this section only apply to the SimpleJndiSrcService
+# This section can safely be deleted if you are not using ldap2ldap synchronization.
+
+# Base DN for searches in the directory
+lsc.tasks.FirstTask.srcService.baseDn = ou=People
+
+# Filter to list all entries to synchronize
+lsc.tasks.FirstTask.srcService.filterAll = (&(sn=*)(objectClass=inetOrgPerson))
+
+# Attributes to read from all entries used to match objects between source and destination
+lsc.tasks.FirstTask.srcService.pivotAttrs = cn sn
+
+# Filter to read one entry to synchronize, based on pivotAttrs above
+# This filter may contain one or several pivotAttrs defined above, like "{attributeName}"
+lsc.tasks.FirstTask.srcService.filterId = (sn={sn})
+
+# Attributes to read from each entry used to read and write data
+lsc.tasks.FirstTask.srcService.attrs = description cn sn userPassword
+### END of SimpleJndiSrcService parameters
+
+
+# Java class name for the service to read objects from the source
+# Usually "org.lsc.jndi.SimpleJndiDstService".
+lsc.tasks.FirstTask.dstService = org.lsc.jndi.SimpleJndiDstService
+
+### SimpleJndiDstService parameters
+# The parameters in this section only apply to the SimpleJndiDstService
+
+# Base DN for searches in the directory
+lsc.tasks.FirstTask.dstService.baseDn = ou=People
+
+# Filter to list all entries to synchronize
+lsc.tasks.FirstTask.dstService.filterAll = (&(sn=*)(objectClass=inetOrgPerson))
+
+# Attributes to read from all entries used to match objects between source and destination
+lsc.tasks.FirstTask.dstService.pivotAttrs = cn sn
+
+# Filter to read one entry to synchronize, based on pivotAttrs above
+# This filter may contain one or several pivotAttrs defined above, like "{attributeName}"
+lsc.tasks.FirstTask.dstService.filterId = (sn={sn})
+
+# Attributes to read from each entry used to read and write data
+lsc.tasks.FirstTask.dstService.attrs = description cn sn userPassword objectClass
+### END of SimpleJndiDstService parameters
+
+
+# Java class name for the LDAP objectClass to read source objects into
+# This class should be generated by the LSC wizard and have set*() and get*() methods
+# for all attributes to read, as specified in lsc.tasks.FirstTask.srcService.attrs or your SQL query.
+lsc.tasks.FirstTask.object = org.lsc.objects.inetOrgPerson
+
+# Java class name for the LDAP objectClass to compare source and destination objects
+# This should be the LDAP objectClass of entries in the destination directory
+lsc.tasks.FirstTask.bean = org.lsc.beans.inetOrgPersonBean
+
+# Construct a DN for new entries in the destination directory
+# This is a JavaScript expression, and can access any utility functions and the srcBean.
+# It should be relative to the LDAP context specified in dst.java.naming.provider.url
+lsc.tasks.FirstTask.dn = "cn=" + srcBean.getAttributeValueById("cn") + ",ou=People"
+
+dn.real_root = dc=lsc-project,dc=org
+

Added: lsc-sample/trunk/etc/log4j.properties
===================================================================
--- lsc-sample/trunk/etc/log4j.properties	                        (rev 0)
+++ lsc-sample/trunk/etc/log4j.properties	2009-07-17 15:52:09 UTC (rev 294)
@@ -0,0 +1,18 @@
+log4j.rootLogger = WARN, CONSOLE
+
+log4j.logger.communicationLogger = WARN, CONSOLE
+log4j.logger.org.apache = WARN, CONSOLE
+log4j.logger.poolLogger = ERROR, CONSOLE
+log4j.logger.lsc = INFO, LSC
+
+log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout = org.lsc.utils.LocalizedJndiModificationsLayout
+log4j.appender.CONSOLE.layout.ConversionPattern = %-4r - %-5p - %m%n
+
+log4j.appender.LSC = org.apache.log4j.RollingFileAppender
+log4j.appender.LSC.File=/tmp/synchro.log
+log4j.appender.LSC.Append = false
+log4j.appender.LSC.Threshold = DEBUG
+log4j.appender.LSC.MaxFileSize = 10000KB
+log4j.appender.LSC.layout = org.lsc.utils.LocalizedJndiModificationsLayout
+log4j.appender.LSC.layout.ConversionPattern = %m%n

Added: lsc-sample/trunk/etc/lsc.properties.dist
===================================================================
--- lsc-sample/trunk/etc/lsc.properties.dist	                        (rev 0)
+++ lsc-sample/trunk/etc/lsc.properties.dist	2009-07-17 15:52:09 UTC (rev 294)
@@ -0,0 +1,163 @@
+#########################################################################
+# LDAP Synchronization Connector (LSC) - http://lsc-project.org         #
+# Main configuration file                                               #
+#########################################################################
+# Most configuration parameters for LSC are in this file.
+# All configuration files are located in this directory (etc)
+#
+# Configuration layout:
+# - etc/ (this directory)
+#	- lsc.properties (this file)
+#		main configuration file
+#	- log4j.properties
+#		configure logging to console, files and CSV/LDIF output
+#	- database.properties
+#		configure JDBC connector, host/port and credentiels
+#	- sql-map-config.xml
+#	- sql-map-config.d/
+#		- <name>.xml
+# 
+# For ldap2ldap connectors, you only need to configure this file and
+# log4j.properties.
+#########################################################################
+
+##############################
+# Destination LDAP directory #
+##############################
+# This section is mandatory since all synchronizations currently go to an LDAP directory.
+
+# Conection URL. This must include a valid LDAP context.
+dst.java.naming.provider.url = ldap://localhost:33389/dc=lsc-project,dc=org
+
+# Authentication type.
+# "none" causes an anonymous bind. "simple" performs a standard bind.
+dst.java.naming.security.authentication = simple
+
+# Bind DN to use if authentication type is "simple"
+dst.java.naming.security.principal = cn=Directory Manager,dc=lsc-project,dc=org
+
+# Bind password to use if authentication type is "simple"
+dst.java.naming.security.credentials = secret
+
+# Follow referrals in searches?
+# Allowed values are "ignore", "follow".
+dst.java.naming.referral = ignore
+
+# Dereference aliases in searches?
+# Allowed values are "never", "search", "find", "always"
+dst.java.naming.ldap.derefAliases = never
+
+# Standard properties. These should not be changed.
+dst.java.naming.factory.initial = com.sun.jndi.ldap.LdapCtxFactory
+dst.java.naming.ldap.version = 3
+
+#########################
+# Source LDAP directory #
+#########################
+# This section can safely be deleted if you are not using ldap2ldap synchronization.
+
+# Conection URL. This must include a valid LDAP context.
+src.java.naming.provider.url = ldap://localhost:33389/dc=lsc-project,dc=org
+
+# Authentication type.
+# "none" causes an anonymous bind. "simple" performs a standard bind.
+src.java.naming.security.authentication = simple
+
+# Bind DN to use if authentication type is "simple"
+src.java.naming.security.principal = cn=Directory Manager,dc=lsc-project,dc=org
+
+# Bind password to use if authentication type is "simple"
+src.java.naming.security.credentials = secret
+
+# Follow referrals in searches?
+# Allowed values are "ignore", "follow".
+src.java.naming.referral = ignore
+
+# Dereference aliases in searches?
+# Allowed values are "never", "search", "find", "always"
+src.java.naming.ldap.derefAliases = never
+
+# Standard properties. These should not be changed.
+src.java.naming.factory.initial = com.sun.jndi.ldap.LdapCtxFactory
+src.java.naming.ldap.version = 3
+
+#######################
+# Tasks configuration #
+#######################
+# This section defines the synchronization tasks for LSC.
+
+# List of defined tasks, seperated by commas
+lsc.tasks = FirstTask, SecondTask
+
+# Task type for task "FirstTask" (ldap2ldap or db2ldap)
+lsc.tasks.FirstTask.type = ldap2ldap
+
+
+# Java class name for the service to read objects from the source
+# Either "org.lsc.jndi.SimpleJndiSrcService" for ldap2ldap, or
+# "org.lsc.service.<objectName>JdbcService" for db2ldap
+lsc.tasks.FirstTask.srcService = org.lsc.jndi.SimpleJndiSrcService
+
+### SimpleJndiSrcService parameters
+# The parameters in this section only apply to the SimpleJndiSrcService
+# This section can safely be deleted if you are not using ldap2ldap synchronization.
+
+# Base DN for searches in the directory
+lsc.tasks.FirstTask.srcService.baseDn = ou=People
+
+# Filter to list all entries to synchronize
+lsc.tasks.FirstTask.srcService.filterAll = (&(sn=*)(objectClass=inetOrgPerson))
+
+# Attributes to read from all entries used to match objects between source and destination
+lsc.tasks.FirstTask.srcService.pivotAttrs = cn sn
+
+# Filter to read one entry to synchronize, based on pivotAttrs above
+# This filter may contain one or several pivotAttrs defined above, like "{attributeName}"
+lsc.tasks.FirstTask.srcService.filterId = (sn={sn})
+
+# Attributes to read from each entry used to read and write data
+lsc.tasks.FirstTask.srcService.attrs = description cn sn userPassword
+### END of SimpleJndiSrcService parameters
+
+
+# Java class name for the service to read objects from the source
+# Usually "org.lsc.jndi.SimpleJndiDstService".
+lsc.tasks.FirstTask.dstService = org.lsc.jndi.SimpleJndiDstService
+
+### SimpleJndiDstService parameters
+# The parameters in this section only apply to the SimpleJndiDstService
+
+# Base DN for searches in the directory
+lsc.tasks.FirstTask.dstService.baseDn = ou=People
+
+# Filter to list all entries to synchronize
+lsc.tasks.FirstTask.dstService.filterAll = (&(sn=*)(objectClass=inetOrgPerson))
+
+# Attributes to read from all entries used to match objects between source and destination
+lsc.tasks.FirstTask.dstService.pivotAttrs = cn sn
+
+# Filter to read one entry to synchronize, based on pivotAttrs above
+# This filter may contain one or several pivotAttrs defined above, like "{attributeName}"
+lsc.tasks.FirstTask.dstService.filterId = (sn={sn})
+
+# Attributes to read from each entry used to read and write data
+lsc.tasks.FirstTask.dstService.attrs = description cn sn userPassword objectClass
+### END of SimpleJndiDstService parameters
+
+
+# Java class name for the LDAP objectClass to read source objects into
+# This class should be generated by the LSC wizard and have set*() and get*() methods
+# for all attributes to read, as specified in lsc.tasks.FirstTask.srcService.attrs or your SQL query.
+lsc.tasks.FirstTask.object = org.lsc.objects.inetOrgPerson
+
+# Java class name for the LDAP objectClass to compare source and destination objects
+# This should be the LDAP objectClass of entries in the destination directory
+lsc.tasks.FirstTask.bean = org.lsc.beans.inetOrgPersonBean
+
+# Construct a DN for new entries in the destination directory
+# This is a JavaScript expression, and can access any utility functions and the srcBean.
+# It should be relative to the LDAP context specified in dst.java.naming.provider.url
+lsc.tasks.FirstTask.dn = "cn=" + srcBean.getAttributeValueById("cn") + ",ou=People"
+
+dn.real_root = dc=lsc-project,dc=org
+



More information about the lsc-changes mailing list