[ lauched again w/o html ]
Hello
I trying to setup a synchronization task from openldap to active
Directory like this
* source :
o OU=people, dc=site
* destination
o OU=people, dc=site <by default>
o OU=sub-ou,ou=people,dc=site (< some IT guys could move account
from OU=people to OU=sub-ou,ou=people)
Due to the last constraint I can't set
<mainIdentifier> </mainIdentifier> to cn =<cn> + OU=people, dc=site
because all people already set in "OU=sub-ou" will be moved to OU=people
and without this value, I can't create new identity.
I cant test the value of dstBean.getMainIdentifier() because it throw a
error ..
The only workaround I found is :
<![CDATA[js:
var dest_dn="";
try {
dest_dn = dstBean.getMainIdentifier();
}catch(err){
dest_dn = "CN=" +
srcBean.getDatasetFirstValueById("cn") + ",OU=people, dc=site"
}
dest_dn;
]]>
Is it a correct way ? maybe a better solution exist ( I see in archive
that lsc 2.2 will be more flexible in this case )
cheers
Antoine
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users