Ooops :$
I just misplace the "</lsc>" with all these copy/paste... Shame on me.
And for the doc, maybe it's because it's not up to date because even for
the ''*authentication" *in
here<http://lsc-project.org/wiki/documentation/2.0/configuration/connections/ldap?s[]=authentication>,
the ANONYMOUS is now (if I understand) replace by NONE.
Anyway, thanks a lot Clément for your time, it has really helped me to move
on :D

2012/11/6 Emeric Million <[email protected]>

> Ok ! Thanks. But why here :
> http://lsc-project.org/wiki/documentation/2.0/configuration/service/sourceldapit's
>  not the case ?
> However I have an other error that I can't resolve... And I don't really
> know how to understand the error with the log. I can't event see where the
> error is in the config file :s Would you like to explain me quickly how do
> we find where the error is ?
> Always when I'm trying to run "lsc -v", I get :
> "
>  ERROR - org.lsc.exception.LscConfigurationException:
> javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException: The markup in the document following the
> root element must be well-formed.]
>
> org.lsc.exception.LscConfigurationException:
> javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException: The markup in the document following the
> root element must be well-formed.]
>         at
> org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:172)
> ~[lsc-core-2.0.1.jar:na]
> "
> Sorry for noobies questions.
>
>
> 2012/11/5 Clément OUDOT <[email protected]>
>
>>
>>
>>
>>  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>(&amp;(objectClass=inetorgperson)
>>>             (mail={mail}))</getOneFilter>
>>>         <cleanFilter>(&amp;(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.
>>
>
>
>
> --
> MILLION Emeric
>
>


-- 
MILLION Emeric
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to