Le 12/05/2010 10:26, Jonathan Clarke a écrit :
Le 12/05/2010 10:02, Romain a écrit :
Yes i have succeded just after i have send my mail. So no, i have this
lsc.properties file :
----------------------------------------
lsc.tasks.user.srcService=org.lsc.jndi.SimpleJndiSrcService
lsc.tasks.user.srcService.pivotAttrs=cn sn
lsc.tasks.user.srcService.filterId=(sn={sn})
lsc.tasks.user.srcService.filterAll=(&(sn=*)(objectClass=inetOrgPerson))
lsc.tasks.user.srcService.baseDn=ou=Users
lsc.tasks.user.srcService.attrs=description cn sn userPassword
#lsc.tasks.user.object=org.lsc.objects.inetOrgPerson
lsc.tasks.user.dstService=org.lsc.jndi.SimpleJndiDstService
lsc.tasks.user.dstService.pivotAttrs=cn sn
lsc.tasks.user.dstService.filterId=(sn={sn})
lsc.tasks.user.dstService.filterAll=(&(sn=*)(objectClass=user))
lsc.tasks.user.dstService.baseDn=cn=Users
lsc.tasks.user.dstService.attrs=description cn sn userPassword
objectClass
lsc.tasks.user.dn="cn=" + srcBean.getAttributeValueById("cn") +
",ou=Users"
lsc.tasks.user.bean=org.lsc.beans.SimpleBean
#lignes ajoutées
lsc.tasks.user.srcService.filterId =
(&(objectClass=inetOrgPerson)(uid={uid}))
lsc.tasks.user.srcService.pivotAttrs = uid
lsc.tasks.user.dstService.filterId =
(&(objectClass=user)(sAMAccountName={uid}))
lsc.tasks.user.dstService.pivotAttrs = uid
lsc.tasks.user.dn = "cn=" + srcBean.getAttributeValueById("cn") +
",ou=Users"
But when i launch this command : bin/lsc -s all -c all, i have this
error message :
--------------------------------------------
mai 12 09:52:03 - INFO - Starting sync for user
mai 12 09:52:04 - INFO - Connecting to LDAP server
ldap://192.168.0.2:389/dc=openldap,dc=nomotech,dc=local as
cn=admin,dc=openldap,dc=nomotech,dc=local
mai 12 09:52:04 - ERROR - Unable to get object for
[email protected],ou=Users,dc=openldap,dc=nomotech,dc=local
So the result is better than yesterday, but now i have error to get the
user ???
The good point are that user are not in openldap directory, are delete
in the ad.
I see that you have several lines for values like
lsc.tasks.user.dstService.pivotAttrs =
You should have only *one* line for all properties. There is no
guarantee that they will be read in order!
Thanks for your quickly answer, its very nice ;-)
No problem :)
Jonathan
I don't understand completly what is the problem :-[
I have 4 line like that, lsc.tasks.user.srcService.pivotAttrs=cn sn
lsc.tasks.user.dstService.pivotAttrs=cn sn
lsc.tasks.user.srcService.pivotAttrs = uid
lsc.tasks.user.dstService.pivotAttrs = uid
I have to delete a line ????
Thanks
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users