<?xml version="1.0" ?>
<lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.3.xsd" revision="0">
	<connections>
		<ldapConnection>
			<name>dst-ldap</name>
			<url>ldap://localhost: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>
			<saslMutualAuthentication>false</saslMutualAuthentication>
		</ldapConnection>
		<databaseConnection>
			<name>src-jdbc</name>
			<url>jdbc:hsqldb:file:/tmp/lsc/hsqldb/lsc</url>
			<username>sa</username>
			<password></password>
			<driver>org.hsqldb.jdbcDriver</driver>
		</databaseConnection>
	</connections>
	<tasks>
		<task>
			<name>MySyncTask</name>
			<bean>org.lsc.beans.SimpleBean</bean>
			<databaseSourceService>
				<name>MySyncTask-src</name>
				<connection reference="src-jdbc"/>
				<requestNameForList>getInetOrgPersonList</requestNameForList>
				<requestNameForObject>getInetOrgPerson</requestNameForObject>
	<requestNameForClean>getInetOrgPersonClean</requestNameForClean>
			</databaseSourceService>
			<ldapDestinationService>
				<name>MySyncTask-dst</name>
				<connection reference="dst-ldap"/>
				<baseDn>ou=Sample,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>mail</string>
					<string>carLicense</string>
					<string>uid</string>
				</fetchedAttributes>
				<getAllFilter>(objectClass=inetOrgPerson)</getAllFilter>
				<getOneFilter>(&amp;(objectClass=inetOrgPerson)(mail={mail}))</getOneFilter>
			</ldapDestinationService>
			<propertiesBasedSyncOptions>
				<mainIdentifier>"mail=" + srcBean.getDatasetFirstValueById("mail") + ",ou=Sample,dc=lsc-project,dc=org"</mainIdentifier>
				<defaultDelimiter>|</defaultDelimiter>
				<defaultPolicy>FORCE</defaultPolicy>
				<dataset>
					<name>objectClass</name>
					<policy>FORCE</policy>
					<forceValues>
						<string>"inetOrgPerson"</string>
						<string>"organizationalPerson"</string>
						<string>"person"</string>
						<string>"top"</string>
					</forceValues>
					<delimiter>,</delimiter>
				</dataset>
				<dataset>
					<name>userPassword</name>
					<policy>KEEP</policy>
					<createValues>
						<string>"changethis"</string>
					</createValues>
				</dataset>
			</propertiesBasedSyncOptions>
		</task>
	</tasks>
</lsc>
