Thanks Clement, I have others questions about problems i encountered :
- I used in the past the ScriptableJndiServices for group member synchronisation (with ldap2ldap lsc configuration), i read that it is available as "ldap" or "srcLdap" (http://lsc-project.org/javadoc/2.0-SNAPSHOT/). So is there a solution to be able to ask destination ldap server or i don't use the right documentation ? Is possible to specify a ldap base search with a different namingContext ? Or is there a method to run ldap query by initializing/using an com.sun.jndi.ldap.LdapCtxFactory object inside Javascript (i'm not Java developper probably my question is a non sense in Java/Javascript) or other object ? - I have tested also the hsqldb to LDAP. And i have notice that all examples on sqlMap namespace are with InetOrgPerson objectClass. Is it possible to initialize sqlMap namespace with organizationalUnit for example or other ? I have also read and tested hsqldb with a csv file with more than 10 000 lines, and i read that by default when initializing a table, hsqldb use a cache_scale of 10, which allow 3*(2^10) = 3072 lines. I have updated hsqldb script like this to optimize hsql performance, i hope it could help : # diff hsqldb hsqldb.ORIG 132,133c132,133 < scale=`echo $nblines | awk '{ print int(log($0/3)/log(2))+1 }'` < cp $1 $HSQLDB_DIR/`basename $1` --- > let nblines-- > tail -n $nblines $1 > $HSQLDB_DIR/`basename $1` 136d135 < source="`basename $1`;ignore_first=true;cache_scale=$scale;fs=$sep" 138c137,139 < source=$source";encoding=UTF-8" --- > hsqldb_sqlQuery "SET TABLE $HSQLDB_TABLE SOURCE \"`basename >$1`;fs=$sep;encoding=UTF-8\";" > /dev/null 2>&1 > else > hsqldb_sqlQuery "SET TABLE $HSQLDB_TABLE SOURCE \"`basename >$1`;fs=$sep\";" > /dev/null 2>&1 140d140 < hsqldb_sqlQuery "SET TABLE $HSQLDB_TABLE SOURCE \"$source\";" > /dev/null 2>&1 Regards, Le 29/10/12, Clément OUDOT <[email protected]> a écrit : > 2012/10/29 "POISSON Frédéric" <[email protected]>: > > Hello, > > > > I would like to know if it is possible with LSC to create a part of subtree > > with a single task when LSC do a create action? > > > > For example i have an entry : > > uid=123456789,ou=AB,dc=example,dc=com > > > > and i would like to check presence of ou=AB and create it if necessary. > > > > I read the conditions, but on create > > (http://lsc-project.org/wiki/documentation/2.0/configuration/syncoptions) we > > have only access to srcBean and not to dstBean. And i'm not sure we can > > create LDAP ou object. > > > > I see the SyncHook parameter > > (http://lsc-project.org/wiki/documentation/2.0/configuration/tasks) permit > > to use a static method but after synchronisation task. > > > > So is there a solution with LSC or existing examples ? Or do i have to > > create a specific task for that ? > > > > Thanks in advance, and thanks also for all the work done. > > > In a short answer: LSC cannot synchronize hierarchical data. > > You have to build a task that will create each level. For example, if > you know that you can have 3 levels, you can have a task that will > create your entries but will fail for each entry that have no parent > (this will not stop the connector). Running the task 3 times should > let LSC create all entries. > > Clément. > > -- Frederic Poisson
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

