[lsc-changes] r304 - in lsc-sample/branches/v1.1/etc: . sql-map-config.d

jclarke at lsc-project.org jclarke at lsc-project.org
Tue Jul 21 16:39:28 CEST 2009


Author: jclarke
Date: 2009-07-21 16:39:28 +0200 (Tue, 21 Jul 2009)
New Revision: 304

Added:
   lsc-sample/branches/v1.1/etc/lsc.properties-sample
   lsc-sample/branches/v1.1/etc/sql-map-config.d/
   lsc-sample/branches/v1.1/etc/sql-map-config.d/.placeholder
   lsc-sample/branches/v1.1/etc/sql-map-config.xml-sample
Removed:
   lsc-sample/branches/v1.1/etc/lsc.properties.dist
Log:
Refs #40. Add and update default configuration files

Copied: lsc-sample/branches/v1.1/etc/lsc.properties-sample (from rev 295, lsc-sample/branches/v1.1/etc/lsc.properties.dist)
===================================================================
--- lsc-sample/branches/v1.1/etc/lsc.properties-sample	                        (rev 0)
+++ lsc-sample/branches/v1.1/etc/lsc.properties-sample	2009-07-21 14:39:28 UTC (rev 304)
@@ -0,0 +1,178 @@
+#########################################################################
+# 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
+#	- 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.
+
+# Connection 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
+
+###################
+# Source database #
+###################
+# This section can safely be deleted if you are not using db2ldap synchronization.
+
+# Java class name of the JDBC driver to use for this database
+src.database.driver = org.hsqldb.jdbcDriver
+
+# Connection URL. This must include the database name.
+src.database.url = jdbc:hsqldb:file:hsqldb/lsc
+
+# User name to connect to the database with
+src.database.username = sa
+
+# Password to connect to the database with
+src.database.password =
+
+#######################
+# 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
+


Property changes on: lsc-sample/branches/v1.1/etc/lsc.properties-sample
___________________________________________________________________
Added: svn:mergeinfo
   + 

Deleted: lsc-sample/branches/v1.1/etc/lsc.properties.dist
===================================================================
--- lsc-sample/branches/v1.1/etc/lsc.properties.dist	2009-07-20 17:14:02 UTC (rev 303)
+++ lsc-sample/branches/v1.1/etc/lsc.properties.dist	2009-07-21 14:39:28 UTC (rev 304)
@@ -1,163 +0,0 @@
-#########################################################################
-# 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/branches/v1.1/etc/sql-map-config.d/.placeholder
===================================================================
--- lsc-sample/branches/v1.1/etc/sql-map-config.d/.placeholder	                        (rev 0)
+++ lsc-sample/branches/v1.1/etc/sql-map-config.d/.placeholder	2009-07-21 14:39:28 UTC (rev 304)
@@ -0,0 +1 @@
+This file can be deleted.

Added: lsc-sample/branches/v1.1/etc/sql-map-config.xml-sample
===================================================================
--- lsc-sample/branches/v1.1/etc/sql-map-config.xml-sample	                        (rev 0)
+++ lsc-sample/branches/v1.1/etc/sql-map-config.xml-sample	2009-07-21 14:39:28 UTC (rev 304)
@@ -0,0 +1,51 @@
+<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
+
+<!--
+	LDAP Synchronization Connector (LSC) - http://lsc-project.org
+	
+	This file configure iBatis to read sqlMap files.
+	Settings should be generated here automatically.
+	The only section you need to check is the sqlMap entries at the bottom.
+-->
+
+<sqlMapConfig>
+
+  <!-- The settings element has a number of configuration switches and properties
+       that configure the SQL Maps engine. Most are performance tweaks or resource
+       management.  They are pretty self explanatory. The defaults are shown here.
+       There can be only one settins element.  -->
+
+  <!-- <settings
+    lazyLoadingEnabled="true"
+    cacheModelsEnabled="true"
+    enhancementEnabled="true"
+    maxRequests="512"
+    maxSessions="128"
+    maxTransactions="32" 
+    /> -->
+
+  <transactionManager type="JDBC">
+    <dataSource type="SIMPLE">
+      <property value="${driver}" name="JDBC.Driver" />
+      <property value="${url}" name="JDBC.ConnectionURL" />
+      <property value="${username}" name="JDBC.Username"/>
+      <property value="${password}" name="JDBC.Password"/>
+      <property value="15" name="Pool.MaximumActiveConnections"/>
+      <property value="15" name="Pool.MaximumIdleConnections"/>
+      <property value="1000" name="Pool.MaximumWait"/>
+    </dataSource>
+  </transactionManager>
+
+  <!-- Finally, the SQL Maps themselves must be registred with the configuration file.
+       Below are some examples of some SQL Map reference elements.  Notice that an
+       SQL Map can  be located in the classpath (resource) or at a URL (e.g. file://
+       or http://).  There can be any number of sqlMap elements. -->
+
+  <!--
+  <sqlMap url="file://${lsc.config.sqlmapdir}/Activity.xml"/>
+  <sqlMap resource="org/lsc/persistence/xml/Activity.xml"/>
+  <sqlMap url="file://C:/config/FileSqlMap.xml" />
+  <sqlMap url="http://www.ibatis.com/maps/WebSqlMap.xml" />
+  -->
+
+</sqlMapConfig>



More information about the lsc-changes mailing list