Hi All!
I am trying to implement LSC in order to synchronize two different LDAP
servers, but I have some troubles!
The idea behind it is to populate one "master" LDAP server with all entries from a
"slave" server and maintain them up to date.
Names of the attributes are different, so I need to "translate" them.
To explain a bit more, here are the two tables:
SLAVE MASTER
cn <-> cn
e164 <-> telephonenumber
loc <-> node
Since I am a newbie in both LDAP and LSC, I am trying to go step by step.
From what I understand reading at the doc, my pivot attribute would either be
cn or e164.
But this is where I get lost.
Here is the following configuration I am using:
When I launch it using the command:
D:\LSC\lsc-core-2.1.3-dist\lsc-2.1.3\bin\lsc.bat -f
D:\LSC\lsc-core-2.1.3-dist\lsc-2.1.3\ip6010to8770 -s all -c all -n
I get the following:
D:\LSC\lsc-core-2.1.3-dist\lsc-2.1.3\bin>lsc.bat -f
D:\LSC\lsc-core-2.1.3-dist\lsc-2.1.3\ip6010to8770 -s all -c all -n
sept. 13 15:19:45 - INFO - Logging configuration successfully loaded from
D:\LSC\lsc-core-2.1.3-dist\lsc-2.1.3\ip6010to8770\logback.xml
sept. 13 15:19:45 - INFO - LSC configuration successfully loaded from
D:\LSC\lsc-core-2.1.3-dist\lsc-2.1.3\ip6010to8770\
sept. 13 15:19:45 - INFO - Connecting to LDAP server
ldap://localhost:389/o=THALES,o=directoryRoot as cn=Directory Manager
sept. 13 15:19:45 - INFO - Connecting to LDAP server ldap://10.226.90.130:389/
as thales
sept. 13 15:19:48 - ERROR - org.lsc.exception.LscConfigurationException:
Configuration exception: null
Please look up the log file C:\Users\A0002561\AppData\Local\Temp\2\lsc.log to
see the error
But no more logs...
Is there a way to have LSC be more verbose?
Do you see something in my config file that could explain the issue?
Thanks a lot for your help, and sorry for my English, which will probably sound
French!
Bruno.
<?xml version="1.0" ?>
<lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.1.xsd" revision="0">
<connections>
<ldapConnection>
<name>dst-ldap</name>
<url>ldap://localhost:389/o=TEST,o=directoryRoot</url>
<username>cn=Directory Manager</username>
<password>password</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>
<ldapConnection>
<name>src-ldap</name>
<url>ldap://192.xxx.xxx.xxx:389/</url>
<username>test</username>
<password>password</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>
</connections>
<tasks>
<task>
<name>MySyncTask</name>
<bean>org.lsc.beans.SimpleBean</bean>
<ldapSourceService>
<name>LDAP-src</name>
<connection reference="src-ldap"/>
<baseDn>cn=PBX0</baseDn>
<pivotAttributes>
<string>cn</string>
</pivotAttributes>
<fetchedAttributes>
<string>cn</string>
<string>e164</string>
</fetchedAttributes>
<getAllFilter>(cn=*)</getAllFilter>
<getOneFilter>(&(cn=*)(cn={cn}))</getOneFilter>
</ldapSourceService>
<ldapDestinationService>
<name>LDAP-dst</name>
<connection reference="dst-ldap"/>
<baseDn>ou=TEST,o=TEST,o=directoryRoot</baseDn>
<pivotAttributes>
<string>cn</string>
</pivotAttributes>
<fetchedAttributes>
<string>cn</string>
<string>e164</string>
</fetchedAttributes>
<getAllFilter>(objectClass=inetOrgPerson)</getAllFilter>
<getOneFilter>(&(objectClass=inetOrgPerson)(cn={cn}))</getOneFilter>
</ldapDestinationService>
<propertiesBasedSyncOptions>
<mainIdentifier>CN="+srcBean.getDatasetFirstValueById("cn")+",OU=TEST,DC=test,DC=com</mainIdentifier>
<defaultDelimiter>;</defaultDelimiter>
<defaultPolicy>FORCE</defaultPolicy>
<dataset>
<name>objectClass</name>
<policy>KEEP</policy>
<createValues>
<string>"cn"</string>
<string>"e164"</string>
</createValues>
</dataset>
</propertiesBasedSyncOptions>
</task>
</tasks>
</lsc>_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users