Hi Sébastien,
the connection itself is correct - if I change the configuration to standard
ldapSourceService with the same connection settings it works ok - see bellow:
<ldapConnection>
<name>ldap-src-conn</name>
<url>ldap://….</url>
<username>...</username>
<password>...</password>
<authentication>SIMPLE</authentication>
<referral>IGNORE</referral>
<derefAliases>NEVER</derefAliases>
<version>VERSION_3</version>
<pageSize>-1</pageSize>
<factory>com.sun.jndi.ldap.LdapCtxFactory</factory>
<tlsActivated>false</tlsActivated>
<binaryAttributes>
<string>objectGUID</string>
</binaryAttributes>
</ldapConnection>
Best regards
--
Tomáš Lukl
ARTiiS GROUP a.s.
602 00 BRNO
Běhounská 2/22-24
T: +420 736184076
E: [email protected] <mailto:[email protected]>
W: www.artiisgroup.cz <http://www.artiisgroup.cz/>
> 19. 7. 2016 v 10:17, Sébastien Bahloul <[email protected]>:
>
> Hi Thomas,
>
> Can you check the details of your connection ldap-src-conn ?
>
> Regards
>
>
> Le 18 juil. 2016 23:54, "Tomáš Lukl" <[email protected]
> <mailto:[email protected]>> a écrit :
> Hello,
>
> I am trying to setup an asyncLdapSourceService with ActiveDirectory.
> The service is set up as follows:
>
> <asyncLdapSourceService>
> <name>ldap-src-service</name>
> <connection reference="ldap-src-conn" />
> <baseDn>...</baseDn>
> <pivotAttributes>
> <string>sAMAccountName</string>
> </pivotAttributes>
> <fetchedAttributes>
> <string>sAMAccountName</string>
> <string>cn</string>
> <string>sn</string>
> <string>userPassword</string>
> <string>objectClass</string>
> <string>givenName</string>
> <string>distinguishedName</string>
> <string>objectGUID</string>
> </fetchedAttributes>
> <getAllFilter><![CDATA[(&(objectClass=*))]]></getAllFilter>
>
> <getOneFilter><![CDATA[(&(objectClass=user)(sAMAccountName={sAMAccountName}))]]></getOneFilter>
> <serverType>ActiveDirectory</serverType>
> </asyncLdapSourceService>
>
>
>
> The LSC is run in server mode.
>
> Actualy I have two problems:
>
> - the service DOES NOT perform an initial full synchronization.
> - the service throws an error while performing sync of one entry:
>
> Jul 18 23:13:44 - DEBUG -
> org.apache.directory.ldap.client.api.exception.InvalidConnectionException:
> Cannot connect on the server, the connection is invalid
> org.apache.directory.ldap.client.api.exception.InvalidConnectionException:
> Cannot connect on the server, the connection is invalid
> at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.checkSession(LdapNetworkConnection.java:271)
> ~[api-all-1.0.0-M22.jar:1.0.0-M22]
> at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.searchAsync(LdapNetworkConnection.java:1667)
> ~[api-all-1.0.0-M22.jar:1.0.0-M22]
> at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1710)
> ~[api-all-1.0.0-M22.jar:1.0.0-M22]
> at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1603)
> ~[api-all-1.0.0-M22.jar:1.0.0-M22]
> at
> org.apache.directory.ldap.client.api.LdapNetworkConnection.search(LdapNetworkConnection.java:1613)
> ~[api-all-1.0.0-M22.jar:1.0.0-M22]
> at
> org.lsc.service.SyncReplSourceService.getBean(SyncReplSourceService.java:250)
> ~[lsc-core-2.1.3.jar:na]
> at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:707)
> [lsc-core-2.1.3.jar:na]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [na:1.8.0_92]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [na:1.8.0_92]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_92]
> Jul 18 23:13:44 - ERROR - Synchronization aborted because no source object
> has been found !
>
>
>
>
> Any help is appreciated. Thank you.
>
> Best regards
>
>
> Tomas
>
>
>
>
>
> --
>
> Tomáš Lukl
> ARTiiS GROUP a.s.
> 602 00 BRNO
> Běhounská 2/22-24
> T: +420 736184076 <tel:%2B420%20736184076>
> E: [email protected] <mailto:[email protected]>
> W: www.artiisgroup.cz <http://www.artiisgroup.cz/>
>
>
>
>
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
> <http://lsc-project.org/>
>
> lsc-users mailing list
> [email protected] <mailto:[email protected]>
> http://lists.lsc-project.org/listinfo/lsc-users
> <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