[lsc-users] configure sync AD to OpenDJ

Sébastien Bahloul sebastien.bahloul at gmail.com
Thu Sep 22 13:53:52 CEST 2011


It seems that I remove the list from the recepients, so I put it back :

> Please paste the services nodes inside task, not the connections !

Regards,
-- 
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/



2011/9/22 Sébastien Bahloul <sebastien.bahloul at gmail.com>

> Please paste the services nodes inside task, not the connections !
>
> Regards
>
> --
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
>
>
>
> 2011/9/22 Avatar <avatar.pm at gmail.com>
>
>>  <connections id="2">
>>    <connection class="ldapConnection" id="4">
>>      <id>ldap-dst-conn</id>
>>      <url>ldap://127.0.0.1/dc=dmz,dc=rian</url>
>>      <username>cn=Directory Manager</username>
>>      <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>
>>    </connection>
>>    <connection class="ldapConnection" id="3">
>>      <id>ldap-src-conn</id>
>>      <url>ldap://ad0.rian.off:389/dc=msk,dc=rian</url>
>>
>>  <username>cn=SA_LDAP-Reader,ou=Test&amp;ServiceUsers,dc=msk,dc=rian</username>
>>      <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>
>>    </connection>
>>  </connections>
>>
>>
>> On Thu, Sep 22, 2011 at 2:10 PM, Sébastien Bahloul
>> <sebastien.bahloul at gmail.com> wrote:
>> > Can you pastebin your configuration, especially the source and
>> destination
>> > services nodes inside the task node ?
>> > Without it, I'd say that your issue is probably related to your
>> > configuration of the source service is incorrect : check that the
>> > getOneFilter value is using replacement that are corresponding to
>> > pivotAttributes
>> > Regards,
>> > --
>> > Sebastien BAHLOUL
>> > IAM / Security specialist
>> > Ldap Synchronization Connector : http://lsc-project.org
>> > Blog : http://sbahloul.wordpress.com/
>> >
>> >
>> >
>> > 2011/9/22 Avatar <avatar.pm at gmail.com>
>> >>
>> >> Next one.
>> >>
>> >> I have 2 difference context:
>> >> AD - dc=msk,dc=rian
>> >> OpenDJ - dc=dmz,dc=rian
>> >>
>> >> сен 22 12:32:07 - INFO  - Loading plugins ...
>> >> сен 22 12:32:17 - INFO  - Plugins loaded ...
>> >> сен 22 12:32:17 - INFO  - Connecting to LDAP server
>> >> ldap://ad0.rian.off:389/dc=msk,dc=rian as
>> >> cn=SA_LDAP-Reader,ou=Test&ServiceUsers,dc=msk,dc=rian
>> >> сен 22 12:32:17 - INFO  - Connecting to LDAP server
>> >> ldap://127.0.0.1/dc=dmz,dc=rian as cn=Directory Manager
>> >> сен 22 12:32:17 - WARN  - Your main identifier will be used as a DN
>> >> ("mail=" + srcBean.getAttributeFirstValueById("mail") +
>> >> ",ou=DIT,dc=dmz,dc=rian") in LDAP destination service and does not end
>> >> with the context dn (dc=dmz,dc=rian). This is probably an error ! For
>> >> LSC 1.X users, this is part of the changelog to 2.X.
>> >> сен 22 12:32:17 - WARN  - Starting sync for People
>> >> сен 22 12:32:17 - ERROR - Empty or non existant source (no IDs found)
>> >>
>> >>
>> >> On Thu, Sep 22, 2011 at 11:03 AM, Sébastien Bahloul
>> >> <sebastien.bahloul at gmail.com> wrote:
>> >> > This is because your are in a XML configuration so take care to use
>> XML
>> >> > entities when required :
>> >> >
>> >> >
>> http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
>> >> > & => &amp;
>> >> >
>> >> > --
>> >> > Sebastien BAHLOUL
>> >> >
>> >> >
>> >> >
>> >> > 2011/9/22 Avatar <avatar.pm at gmail.com>
>> >> >>
>> >> >> Thanks
>> >> >>
>> >> >> We have very horrible name for binddn
>> >> >> <username>cn=SA_LDAP,ou=Test&ServiceUsers,dc=msk,dc=rian</username>
>> >> >> and this appears it is cause of problem:
>> >> >>
>> >> >> Bugtrack:
>> >> >> 18:06:44.894 [main] INFO  o.l.c.XmlConfigurationHelper - Loading
>> >> >> plugins
>> >> >> ...
>> >> >> 18:06:55.932 [main] INFO  o.l.c.XmlConfigurationHelper - Plugins
>> loaded
>> >> >> ...
>> >> >> Error: com.thoughtworks.xstream.converters.ConversionException:  :
>> >> >> ParseError at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter. :  : ParseError at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >> ---- Debugging information ----
>> >> >> message             :  : ParseError at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >> cause-exception     : com.thoughtworks.xstream.io.StreamException
>> >> >> cause-message       :  : ParseError at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >> class               : org.lsc.configuration.objects.LscConfiguration
>> >> >> required-type       : java.lang.String
>> >> >> line number         : 20
>> >> >> -------------------------------
>> >> >> com.thoughtworks.xstream.converters.ConversionException:  :
>> ParseError
>> >> >> at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter. :  : ParseError at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >> ---- Debugging information ----
>> >> >> message             :  : ParseError at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >> cause-exception     : com.thoughtworks.xstream.io.StreamException
>> >> >> cause-message       :  : ParseError at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >> class               : org.lsc.configuration.objects.LscConfiguration
>> >> >> required-type       : java.lang.String
>> >> >> line number         : 20
>> >> >> -------------------------------
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:68)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
>> >> >>        at
>> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
>> >> >>        at
>> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
>> >> >>        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
>> >> >>        at
>> >> >>
>> >> >>
>> org.lsc.configuration.XmlConfigurationHelper.getConfiguration(XmlConfigurationHelper.java:168)
>> >> >>        at org.lsc.Configuration.setUp(Configuration.java:482)
>> >> >>        at org.lsc.Configuration.setUp(Configuration.java:457)
>> >> >>        at org.lsc.Launcher.run(Launcher.java:200)
>> >> >>        at org.lsc.Launcher.launch(Launcher.java:158)
>> >> >>        at org.lsc.Launcher.main(Launcher.java:141)
>> >> >> Caused by: com.thoughtworks.xstream.io.StreamException:  :
>> ParseError
>> >> >> at [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:64)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:124)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.io.xml.AbstractPullReader.getValue(AbstractPullReader.java:184)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:49)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>> >> >>        ... 33 more
>> >> >> Caused by: javax.xml.stream.XMLStreamException: ParseError at
>> >> >> [row,col]:[20,56]
>> >> >> Message: The reference to entity "ServiceUsers" must end with the
>> ';'
>> >> >> delimiter.
>> >> >>        at
>> >> >>
>> >> >>
>> com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown
>> >> >> Source)
>> >> >>        at
>> >> >>
>> >> >>
>> com.thoughtworks.xstream.io.xml.StaxReader.pullNextEvent(StaxReader.java:49)
>> >> >>        ... 38 more
>> >> >> Last log file line: 2011/09/21 18:06:44 [lsc] Starting LSC
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Wed, Sep 21, 2011 at 5:43 PM, Sébastien Bahloul
>> >> >> <sebastien.bahloul at gmail.com> wrote:
>> >> >> > You may take a look at the following sample :
>> >> >> >
>> >> >> >
>> >> >> >
>> http://tools.lsc-project.org/projects/lsc/repository/entry/lsc/trunk/sample/syncrepl/etc-openldap2opendj/lsc.xml
>> >> >> > Just replace the source service class definition :
>> >> >> >
>> >> >> > <sourceService
>> >> >> >
>> >> >> >
>> class="org.lsc.plugins.connectors.syncrepl.SyncReplServiceConfiguration"
>> >> >> > id="11">
>> >> >> >
>> >> >> > with
>> >> >> >
>> >> >> > <sourceService class="ldapSourceService" id="11">
>> >> >> > and remove the following line :
>> >> >> >
>> >> >> > <serverType>OpenLDAP</serverType>
>> >> >> >
>> >> >> > Regards,
>> >> >> > --
>> >> >> > Sebastien BAHLOUL
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > 2011/9/21 Avatar <avatar.pm at gmail.com>
>> >> >> >>
>> >> >> >> I presume first of all we need ad=>opendj. bi derectional is far
>> >> >> >> away
>> >> >> >> now.
>> >> >> >>
>> >> >> >> On Wed, Sep 21, 2011 at 5:28 PM, Sébastien Bahloul
>> >> >> >> <sebastien.bahloul at gmail.com> wrote:
>> >> >> >> > Hi Pavel,
>> >> >> >> > Can you describe what type of synchronization do you want to
>> >> >> >> > achieve
>> >> >> >> > :
>> >> >> >> > ad=>opendj, opendj => ad or bi directional ?
>> >> >> >> > Regards,
>> >> >> >> > --
>> >> >> >> > Sebastien BAHLOUL
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > 2011/9/21 Avatar <avatar.pm at gmail.com>
>> >> >> >> >>
>> >> >> >> >> Hi
>> >> >> >> >>
>> >> >> >> >> I really glad to see such project like this because it most be
>> >> >> >> >> very
>> >> >> >> >> helpful to synchronize many data between different
>> applications
>> >> >> >> >> using
>> >> >> >> >> ldap.
>> >> >> >> >>
>> >> >> >> >> But now I have some issues to figure out either it works or
>> not.
>> >> >> >> >> Config files in etc directory have xml format and it is
>> terribly
>> >> >> >> >> difficult to configure the system without any specific
>> >> >> >> >> application.
>> >> >> >> >>
>> >> >> >> >> My issue is simple to synchronize AD and OpenDJ. I'd like you
>> to
>> >> >> >> >> point
>> >> >> >> >> me out into the right samples of configs, please. I'm trying
>> to
>> >> >> >> >> use
>> >> >> >> >> Beta version 2.0 (06/07/11).
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> Rgrds, Pavel Morozov
>> >> >> >> >>
>> _______________________________________________________________
>> >> >> >> >> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>> >> >> >> >>
>> >> >> >> >> lsc-users mailing list
>> >> >> >> >> lsc-users at lists.lsc-project.org
>> >> >> >> >> http://lists.lsc-project.org/listinfo/lsc-users
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Rgrds, Pavel Morozov
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Rgrds, Pavel Morozov
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Rgrds, Pavel Morozov
>> >
>> >
>>
>>
>>
>> --
>> Rgrds, Pavel Morozov
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lsc-project.org/pipermail/lsc-users/attachments/20110922/2aea5586/attachment-0001.htm>


More information about the lsc-users mailing list