2013/11/29 Matteo Perego <[email protected]>
> Hi,
> I'm using LSC to syncing two AD (2008 R2, 2003 functional level).
>
> I need to sync a source tree with two OUs, eg.:
>
> OU=Contacts,DC=example
> OU=External,OU=Contacts,DC=example
>
> I need to sync 'em on another AD, writing on those OUs:
>
> OU=Contacts,DC=example-test
> OU=External,OU=Contacts,DC=example-test
>
> The question is: how can I rewrite the destination DN i this way ?
>
> CN=foo,OU=Contacts,DC=example => CN=foo,OU=Contacts,DC=example-test
> CN=foo,OU=External,OU=Contacts,DC=example => CN=foo,OU=External,
> OU=Contacts,DC=example-test
>
> I've didn't found a way to do that in javascript with LSC.
>
> I've ended up making two distinct tasks, one for each OU, the key point is
> to use those parameters on the destination data source:
>
>
> <getOneFilter>(distinguishedName=CN={cn},OU=Contacts,DC=example-test)</getOneFilter>
> ...
>
> <mainIdentifier>srcBean.getDatasetFirstValueById("distinguishedName").replace("example","example-test")</mainIdentifier>
>
>
> <getOneFilter>(distinguishedName=CN={cn},OU=External,OU=Contacts,DC=example-test)</getOneFilter>
> ...
>
> <mainIdentifier>srcBean.getDatasetFirstValueById("distinguishedName").replace("example","example-test")</mainIdentifier>
>
> This is working well on the OU=External,OU=Contacts sync but fail on the
> OU=Contacts
> sync cause I cannot filter (on source and dest) on a single OU, cause
> with AD I cannot :
>
> - use an OU as an ldapsearch filter
> - use wildcard in the distinguishedName attribue.
>
> suggestion ?
>
Your mainIdentifier rule should work with a single task for the two OU:
<mainIdentifier>srcBean.getDatasetFirstValueById("distinguishedName").replace("example","example-test")</mainIdentifier>
Why does it fail?
Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users