Le 19/10/2016 à 10:35, Clément OUDOT a écrit :
> <create>
>     <![CDATA[
>         var result = true;
> 
>         var dn = srcBean.getDatasetFirstValueById("entryDN");
>         var regexp = /ou=projects/i;
>         if ( dn.match(regexp) ) { result = false; }
> 
>         result;
>     ]]>
> </create>
> 
> 
> Be sure to add entryDN in source fetchedAttributes to be able to use its
> value in the test.

Hi Clément,

How would you do that in <delete> ?

For example let's say I want to exclude the baseDn of the clean phase ?

I tried various thing like :

        var result = true;

        var dn = dstBean.getDatasetFirstValueById("dn"); // entryDN =
same result.
        if ( dn == "ou=projects,dc=..." ) { result = false; }

        result;

Of course I add the attribute in fetchedAttributes of the *destination*.

I got "Could not retrieve the object xxx from the directory" for every
entry in the destination directory of the baseDn, including the baseDn
entry itself.

Thanks !
_______________________________________________________________
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