Hi,

Thanks for your answer. Yes i have run "ant lsc::generateWizard"
However, I have resolve the problem to remplace "org.lsc.beans.userBean" by "org.lsc.beans.inetOrgPersonBean", but no i have this error message :

-----------------------------------------------------------------
Buildfile: build.xml

lsc::init:

lsc::prepare-env:
     [echo] Copying xml and properties files
[copy] Copying 1 file to /home/debian/Desktop/lsc-sample-1.1.2/target/classes

lsc::compile-resources:
     [echo] Compiling resources

lsc::compile-app:

lsc::synchronize:
     [java] 0    - WARN  - Starting sync for user (ldap2ldap)
[java] 50 - INFO - Connecting to LDAP server ldap://localhost:389/dc=openldap,dc=nomotech,dc=local as cn=admin,dc=openldap,dc=nomotech,dc=local [java] 153 - INFO - Connecting to LDAP server ldap://192.168.0.1:389/dc=nomotech,dc=local as cn=Administrateur,cn=Users,dc=nomotech,dc=local [java] 437 - ERROR - Error while adding entry cn=toto,cn=Users in directory : javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 0000001F: SvcErr: DSID-031A0FBC, problem 5003 (WILL_NOT_PERFORM), data 0
     [java] ]; remaining name 'cn=toto,cn=Users'
[java] 452 - ERROR - Erreur rencontrée sur l'identifiant cn=toto,cn=Users:
     [java]
     [java] dn: cn=toto,cn=Users,dc=nomotech,dc=local
     [java] changetype: add
     [java] objectclass: top
     [java] objectclass: user
     [java] objectclass: person
     [java] objectclass: organizationalPerson
     [java] sn: toto
     [java] cn: toto
     [java] userprincipalname: [email protected]
     [java] samaccountname: toto
     [java] unicodepwd:: IgBjAGgAYQBuAGcAZQBpAHQAIgA=
     [java]
[java] 486 - ERROR - # Nombre d'enregistrement(s) pris en compte: 1, nombre d'enregistrement(s) à reporter: 1, nombre d'enregistrements reporté(s): 0, nombre d'erreurs: 1

BUILD SUCCESSFUL
Total time: 3 seconds
-------------------------------------------------------------------

So i have nothing new in my AD. And i think that my method to resolve the problem are not good.

However, i have tried the 1.2 version, but files are not the same so i have tried in the 1.1.2 version.

In the 1.2 version, i have make the lsc.properties file, but i don't know how to launch the synchronization ???

Thanks

Le 11/05/2010 16:34, Jonathan Clarke a écrit :
Hi,

On 11/05/2010 15:18, Romain wrote:
Hello.

I work currently to synchronize the 2 directory AD and OpenLDAP. So, i
have configure the lsc.properties, but when i launch this command,
'''ant lsc::synchronize -Dsynchronize.parameters="-f $PWD/etc -c all -s
all -n" ''' i obtain this message :


lsc::synchronize:
[java] 0 - WARN - Starting sync for user (ldap2ldap)
[java] 11 - FATAL - Error while launching the following task: user.
Please check your code ! (java.lang.reflect.InvocationTargetException)
[java] java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

[java] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:532) [java] at org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:244)
[java] at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:172)
[java] at org.lsc.Launcher.run(Launcher.java:125)
[java] at org.lsc.Launcher.main(Launcher.java:113)
[java] Caused by: java.lang.ExceptionInInitializerError
[java] at
org.lsc.jndi.SimpleJndiDstService.<init>(SimpleJndiDstService.java:94)
[java] ... 8 more
[java] Caused by: java.lang.ClassNotFoundException: org.lsc.beans.userBean
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:186)
[java] at
org.lsc.jndi.SimpleJndiDstService.<init>(SimpleJndiDstService.java:92)
[java] ... 8 more


It looks like you're using version 1.1 of LSC. "org.lsc.beans.userBean" is a class that must be generated first, before running "lsc:synchronize". It doesn't exist in the LSC distribution.

Did you run "ant lsc::generateWizard" first? See http://lsc-project.org/wiki/documentation/1.1/quickstart for more details.

1.1 will soon be out-of-date. I recommend using 1.2 for any new deployments (the snapshot versions are available on the web site). This version makes this a lot simpler.

Regards,
Jonathan

_______________________________________________________________
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