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.
_______________________________________________________________
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