I am trying to use LSC to essentially "mirror" a very hierarchical (many
nested OUs) production LDAP instance into an isolated pre-production LDAP
instance.    My current issue is that the updates are being generated in
reverse (or perhaps random) order, so that child objects creations are
attempted before parent objects have been created.

See the bottom of this post for an excerpt from my LDIF.   I know there is
a <*sortedBy*> option I can use at the connection level, but I don't know
of any LDAP attribute that could be used in a sort-by-depth manner.   Are
there any clever solutions for this?

One ideaI am exploring is to sort by whenChanged, thinking that the
most-recently changed objects should be the children.   However, this
lsc.xml configuration appears to be invalid.

    </ldapConnection>
        . . . . . .
      <binaryAttributes>
        <string>objectGUID</string>
      </binaryAttributes>
      <sortedBy>whenChanged</sortedBy>
    </ldapConnection>

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 'sortedBy'. No child element is expected at
this point.]
org.lsc.exception.LscConfigurationException:
javax.xml.bind.UnmarshalException


Hugh


# # #  lsc.ldif excerpt follows:

dn: OU=Terminal Servers,OU=Servers,OU=IT,dc=lsc-project,dc=org
changetype: add
ou: Terminal Servers
description: OU=Terminal Servers,OU=Servers,OU=IT,DC=montpelierre,DC=net
name: Terminal Servers
objectClass: organizationalUnit
objectClass: top


dn: OU=Servers,OU=IT,dc=lsc-project,dc=org
changetype: add
ou: Servers
description: OU=Servers,OU=IT,DC=montpelierre,DC=net
name: Servers
objectClass: organizationalUnit
objectClass: top


dn: OU=IT,dc=lsc-project,dc=org
changetype: add
ou: IT
description: OU=IT,DC=montpelierre,DC=net
name: IT
objectClass: organizationalUnit
objectClass: top
_______________________________________________________________
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