Hi Juan,
The issue you are encountering is a missing configuration node :
<fetchedAttributes><string>attr1</string><string>attr2</string></fetchedAttributes>
just after the pivotAttributes node.
But you shouldn't catch a NPE, this is a bug that we will fix.
By the way, your objectClass forced value ("cn") will probably be rejected
by OpenLDAP. You should look to replace it by inetorgperson or something
meaningful.
Regards,
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/
2013/8/13 Juan Pablo Roig <[email protected]>
> Hi everyone, myname is Juan Pablo Roig, and is my first time using lsc.
> I am trying to sync all ActiveDirectory users to my openldap 2.4, but i am
> getting this error:
> org.lsc.exception.LscConfigurationException:
> java.lang.reflect.InvocationTargetException
> at org.lsc.Task.<init>(Task.java:124) ~[lsc-core-2.0.2.jar:na]
> at org.lsc.SimpleSynchronize.init(SimpleSynchronize.java:103)
> ~[lsc-core-2.0.2.jar:na]
> at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:145)
> ~[lsc-core-2.0.2.jar:na]
> at org.lsc.Launcher.run(Launcher.java:224) [lsc-core-2.0.2.jar:na]
> at org.lsc.Launcher.launch(Launcher.java:159)
> [lsc-core-2.0.2.jar:na]
> at org.lsc.Launcher.main(Launcher.java:142) [lsc-core-2.0.2.jar:na]
> Caused by: java.lang.reflect.InvocationTargetException: null
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method) ~[na:1.7.0_25]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source) ~[na:1.7.0_25]
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> ~[na:1.7.0_25]
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> ~[na:1.7.0_25]
> at org.lsc.Task.<init>(Task.java:104) ~[lsc-core-2.0.2.jar:na]
> ... 5 common frames omitted
> Caused by: java.lang.NullPointerException: null
> at
> org.lsc.jndi.AbstractSimpleJndiService.<init>(AbstractSimpleJndiService.java:166)
> ~[lsc-core-2.0.2.jar:na]
> at
> org.lsc.jndi.SimpleJndiDstService.<init>(SimpleJndiDstService.java:97)
> ~[lsc-core-2.0.2.jar:na]
> ... 10 common frames omitted
>
> Here is my lsc.xml:
> <lsc xmlns="http://lsc-project.org/XSD/lsc-core-2.0.xsd" revision="0">
> <connections>
> <ldapConnection>
> <name>openldap</name>
> <url>ldap://ldap1:389/dc=it,dc=scripps,dc=com</url>
> <username>cn=admin,dc=it,dc=scripps,dc=com</username>
> <password>secret</password>
> <authentication>SIMPLE</authentication>
> <referral>IGNORE</referral>
> <derefAliases>NEVER</derefAliases>
> <version>VERSION_3</version>
> <pageSize>-1</pageSize>
> <tlsActivated>true</tlsActivated>
> </ldapConnection>
> <ldapConnection>
> <name>ad</name>
> <url>ldap://windowsdc-1a:389/dc=lsc-project,dc=org</url>
>
> <username>cn=Administrator,cn=Users,dc=it,dc=scripps,dc=com</username>
> <password>secret</password>
> <authentication>SIMPLE</authentication>
> <pageSize>1000</pageSize>
> </ldapConnection>
> </connections>
> <tasks>
> <task>
> <name>AdSync</name>
> <bean>org.lsc.beans.SimpleBean</bean>
> <ldapSourceService>
> <name>ad-src</name>
> <connection reference="ad" />
> <baseDn>ou=Globant</baseDn>
> <pivotAttributes>
> <string>uid</string>
> </pivotAttributes>
>
> <getAllFilter>(&(sAMAccountName=*)(objectClass=user))</getAllFilter>
>
> <getOneFilter>(&(objectClass=inetOrgPerson)(uid={uid}))</getOneFilter>
> </ldapSourceService>
> <ldapDestinationService>
> <name>openldap-dst</name>
> <connection reference="openldap" />
> <baseDn>ou=users</baseDn>
> <pivotAttributes>
> <string>mail</string>
> </pivotAttributes>
>
> <getAllFilter>(&(uid=*)(objectClass=posixAccount))</getAllFilter>
>
> <getOneFilter>(&(objectClass=user)(sAMAccountName={uid}))</getOneFilter>
> </ldapDestinationService>
> <propertiesBasedSyncOptions>
> <mainIdentifier>"cn=" + srcBean.getDatasetFirstValueById("cn") +
> ",ou=users,dc=it,dc=scripps,dc=com"</mainIdentifier>
> <defaultDelimiter>;</defaultDelimiter>
> <defaultPolicy>FORCE</defaultPolicy>
> <dataset>
> <name>objectclass</name>
> <policy>FORCE</policy>
> <forceValues>
> <string>"cn"</string>
> </forceValues>
> </dataset>
> </propertiesBasedSyncOptions>
> </task>
> </tasks>
> </lsc>
>
>
> and my java:
> [root@ldap1 bin]# java -version
> java version "1.7.0_25"
> Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
>
> any help will be appreciated.
> Thanks
> --
>
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
>
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users