<?xml version="1.0" ?>
<lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.3.xsd" revision="0">
	<connections>
		<ldapConnection>
			<name>ldap</name>
			<url>ldap://127.0.0.1:33389/dc=lsc-project,dc=org</url>
			<username>cn=Directory Manager</username>
			<password>secret</password>
			<authentication>SIMPLE</authentication>
			<referral>IGNORE</referral>
			<derefAliases>NEVER</derefAliases>
			<version>VERSION_3</version>
			<pageSize>-1</pageSize>
			<factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
			<tlsActivated>false</tlsActivated>
		</ldapConnection>
		<databaseConnection>
			<name>postgresql</name>
			<url>jdbc:postgresql://127.0.0.1:5432/lsc</url>
			<username>lsc</username>
			<password>lsc</password>
			<driver>org.postgresql.Driver</driver>
		</databaseConnection>
	</connections>
	<tasks>
		<task>
			<name>People</name>
			<bean>org.lsc.beans.SimpleBean</bean>
			<ldapSourceService>
				<name>openldap-source-service</name>
				<connection reference="ldap" />
				<baseDn>ou=People,dc=lsc-project,dc=org</baseDn>
				<pivotAttributes>
					<string>mail</string>
				</pivotAttributes>
				<fetchedAttributes>
					<string>description</string>
					<string>cn</string>
					<string>sn</string>
					<string>userPassword</string>
					<string>objectClass</string>
					<string>uid</string>
					<string>mail</string>
				</fetchedAttributes>
				<allEntriesFilter>"(objectClass=inetorgperson)"</allEntriesFilter>
				<oneEntryFilter>"(&amp;(objectClass=inetorgperson)(mail=" + pivotAttributes["mail"] + "))"</oneEntryFilter>
				<cleanEntryFilter>"(&amp;(objectClass=inetorgperson)(mail=" + pivotAttributes["mail"] + "))"</cleanEntryFilter>
			</ldapSourceService>
			<multiDestinationService>
	<name>multi-destination-service</name>
				<connection reference="postgresql" />
	<xaServices reference="databaseDestinationService">
					<name>postgresql-destination-service</name>
					<connection reference="postgresql" />
					<requestsNameForInsert>insertInetOrgPerson</requestsNameForInsert>
					<requestsNameForUpdate>updateInetOrgPerson</requestsNameForUpdate>
					<requestsNameForDelete>deleteInetOrgPerson</requestsNameForDelete>
					<requestNameForObject>getInetOrgPerson</requestNameForObject>
					<requestNameForList>getInetOrgPersonList</requestNameForList>
	</xaServices>
	<xaServices reference="xaFileDestinationService">
					<name>file-destination-service</name>
					<outputDirectory>c:/temp</outputDirectory>
	</xaServices>
			</multiDestinationService>
			<propertiesBasedSyncOptions>
				<mainIdentifier>"mail="+srcBean.getAttributeFirstValueById("mail") + ",ou=People,dc=lsc-project,dc=org"</mainIdentifier>
				<defaultDelimiter>;</defaultDelimiter>
				<defaultPolicy>FORCE</defaultPolicy>
			</propertiesBasedSyncOptions>
		</task>
	</tasks>
</lsc>
