2013/12/9 Francesco Malvezzi <[email protected]>

> Hi all,
>
> my goal is to provision a Active Directory starting from entries in a
> OpenLDAP directory.
>
> Unfortunately, I did something wrong with configuration, because I can't
> start service with the following null pointer exception:
>
> dic 09 15:48:02 - DEBUG - Loading XML configuration from:
> /opt/lsc-2.0.3/etc/lsc.xml
> dic 09 15:48:02 - INFO  - Reflections took 175 ms to scan 1 urls,
> producing 51 keys and 103 values
> dic 09 15:48:02 - DEBUG - Importing XML schema file:
> schemas/lsc-core-2.0.xsd
> dic 09 15:48:02 - INFO  - Logging configuration successfully loaded from
> /opt/lsc-2.0.3/etc/logback.xml
> dic 09 15:48:02 - INFO  - LSC configuration successfully loaded from
> /opt/lsc-2.0.3/etc/
> dic 09 15:48:02 - ERROR - org.lsc.exception.LscConfigurationException:
> java.lang.reflect.InvocationTargetException
> dic 09 15:48:02 - DEBUG - org.lsc.exception.LscConfigurationException:
> java.lang.reflect.InvocationTargetException
> org.lsc.exception.LscConfigurationException:
> java.lang.reflect.InvocationTargetException
>         at org.lsc.Task.<init>(Task.java:127) ~[lsc-core-2.0.3.jar:na]
>         at org.lsc.SimpleSynchronize.init(SimpleSynchronize.java:103)
> ~[lsc-core-2.0.3.jar:na]
>         at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:145)
> ~[lsc-core-2.0.3.jar:na]
>         at org.lsc.Launcher.run(Launcher.java:224) [lsc-core-2.0.3.jar:na]
>         at org.lsc.Launcher.launch(Launcher.java:159)
> [lsc-core-2.0.3.jar:na]
>         at org.lsc.Launcher.main(Launcher.java:142) [lsc-core-2.0.3.jar:na]
> Caused by: java.lang.reflect.InvocationTargetException: null
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method) ~[na:1.6.0_27]
>         at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> ~[na:1.6.0_27]
>         at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> ~[na:1.6.0_27]
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> ~[na:1.6.0_27]
>         at org.lsc.Task.<init>(Task.java:107) ~[lsc-core-2.0.3.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.3.jar:na]
>         at
> org.lsc.jndi.SimpleJndiDstService.<init>(SimpleJndiDstService.java:97)
> ~[lsc-core-2.0.3.jar:na]
>         ... 10 common frames omitted
>
> I suppose it is something related to either
>       <ldapDestinationService>
> <!--    A ldap destination service will have to contain at least a name, a
> connection reference, a base DN, a filter to list
>                         entries, a filter to get a particular entry, a
> list of pivot
> attributes and a list of fetched attributes -->
>         <name>adsamba4-service</name>
>         <connection reference="adsamba4-conn" />
>         <baseDn>ou=Users,dc=ad,dc=unimore,dc=it</baseDn>
>         <pivotAttributes>
>           <string>mail</string>
>         </pivotAttributes>
>
> <getAllFilter>(&amp;(sAMAccountName=*)(objectClass=user))</getAllFilter>
>
> <getOneFilter>(&amp;(objectClass=user)(sAMAccountName={uid}))</getOneFilter>
>       </ldapDestinationService>
>
>


You have to define at least one attribute in fetchedAttributes.



> or:
>   <ldapConnection>
>       <name>adsamba4-conn</name>
>       <url>ldap://ateneo.unimore.it:389/dc=ad,dc=unimore,dc=it</url>
> <!--      <username>cn=adminlsc,dc=ad,dc=unimore,dc=it</username> -->
>       <username>[email protected]</username>
>       <password>not_really</password>
>       <authentication>SIMPLE</authentication>
>       <referral>IGNORE</referral>
>       <derefAliases>NEVER</derefAliases>
>       <version>VERSION_3</version>
>       <pageSize>1000</pageSize>
>       <factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
>       <tlsActivated>false</tlsActivated>
>     </ldapConnection>
>   </connections>
>
> could you please confirm if the correct bindDn to AD should be:
> cn=adminlsc,dc=ad,dc=unimore,dc=it
> [email protected]
>
>

Use the DN form ( cn=adminlsc,dc=ad,dc=unimore,dc=it)


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