Le 14/09/2015 16:16, Speleman Luc a écrit :
Hi,
I’m new to lsc.
And I’m a bit stuck.
I try to synchronise a LDAP directory with an OpenDj directory through
a lsc script.
I need to synchronise different OU’s from LDAP to one group (users) in
OpenDj.
My problem is that if a user exists in 2 OU’s he will be created the
first time, which is good.
But with the second OU he will be deleted again. L
In the attachments I added 2 files.
One lsc.properties file that contains all the rules. It’s a test
script to synchronise 1 user. (inflspe)
The other attachment is the logging of my script.
There you can see that the synchronization first adds the user to
opendj from OU informatica
qnd afterwards deletes the user from OU Afwezigheidscontrole
Can anybody assist me with my configuration.
Hi,
first, you sent a configuration file that uses the old format. We are
using XML configuration since LSC 2, so you should use a more recent
version of LSC.
Concerning your question, you can either search on the parent branch of
the two ou to get all users in one search (and use the filter to ignore
unwated entries), or if you want to use two different tasks, set an
attribute in user entry (for example employeeType: informatica) and use
this attribute in LDAP filters: in this case, people form ou informatice
will be be found in Afwezigheidscontrole task, and so not deleted.
--
Clément OUDOT
Consultant en logiciels libres, Expert infrastructure et sécurité
Savoir-faire Linux
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users