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 ?
--
Cordiali Saluti,
Matteo Perego
Xego di Perego Matteo & C. s.a.s.
Via Giovanni Pascoli, 18
24040 Arzago d'Adda (BG)
Part IVA/Cod Fis: 03126510167
R.E.A. 351612
tel +39-3395294954
fax +39-02700525082
http://www.xego.it
email: [email protected]
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users