2012/11/5 Emeric Million <[email protected]> > Hi. > I'm trying to get familiar with LSC. For now I have 2 openLDAP : 1 with > some entries and one without entries. I would like to sync the old one with > the new one. > I configure everything in the lsc.xml however when I try to validate the > configuration (with lsc -v) I run into this error : > > " > ERROR - org.lsc.exception.LscConfigurationException: > javax.xml.bind.UnmarshalException > - with linked exception: > [org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content > was found starting with element 'pivotAttributes'. No child element is > expected at this point.] > org.lsc.exception.LscConfigurationException: > javax.xml.bind.UnmarshalException > - with linked exception: > [org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content > was found starting with element 'pivotAttributes'. No child element is > expected at this point.] > [...] > " > > Here a sample of my lsc.xml : > > " > [...] > <tasks> > <task> > <name>MySyncTask</name> > <bean>org.lsc.beans.SimpleBean</bean> > <ldapSourceService> > <name>ldap-src-service</name> > <connection reference="ldap-src-conn" /> > <baseDn>dc=MyDomain,dc=int</baseDn> > > <getAllFilter>(objectClass=inetorgperson)</getAllFilter> > <getOneFilter>(&(objectClass=inetorgperson) > (mail={mail}))</getOneFilter> > <cleanFilter>(&(objectClass=inetorgperson) > (mail={mail}))</cleanFilter> > > <filterAsync>modifytimestamp>={0}</filterAsync> > <dateFormat>yyyyMMddHHmmss</dateFormat> > <interval>5</interval> > > <pivotAttributes> > <string>cn</string> > </pivotAttributes> > > <fetchedAttributes> > <string>cn</string> > <string>sn</string> > <string>objectClass</string> > <string>uid</string> > <string>mail</string> > </fetchedAttributes> > </ldapSourceService> > > <ldapDestinationService> > <name>ldap-dst-service</name> > <connection reference="ldap-dst-conn" /> > <baseDn>dc=MyDomain,dc=int</baseDn> > > <pivotAttributes> > <string>cn</string> > </pivotAttributes> > > <fetchedAttributes> > <string>cn</string> > <string>sn</string> > <string>objectClass</string> > <string>uid</string> > <string>mail</string> > </fetchedAttributes> > </ldapDestinationService> > [...] > " >
Order of markups is sensitive in configuration format. pivotsAttributes should be defined just after baseDn. Clément.
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

