2010/6/16 <[email protected]>: > Hi > I am trying to synchronize 2 ldap servers but it doesnt work. There is > something I have certainly misunderstood in my lsc.properties. > The connection to the sources and destination are correct. > I have modified the lsc.properties-sample from the folder etc in a > lsc.properties and executed this command : bin/lsc -f etc -c all -s all n > Here are the errors I obtain : > > juin 16 11:12:41 - ERROR - Error while looking for (st=2b) in > ou=UnitLevel1a: ja > vax.naming.ServiceUnavailableException: 192.168.6.105:10389; socket closed; > rema > ining name 'ou=UnitLevel1a' > juin 16 11:12:41 - ERROR - Error while synchronizing ID > ou=UnitLevel4b,ou=UnitLe > vel3a,ou=UnitLevel2a,ou=UnitLevel1a: > javax.naming.ServiceUnavailableException: 1 > 92.168.6.105:10389; socket closed; remaining name 'ou=UnitLevel1a' > dn: > ou=UnitLevel4b,ou=UnitLevel3a,ou=UnitLevel2a,ou=UnitLevel1a,dc=testDomain,dc > =com > changetype: modrdn > newrdn: ou=UnitLevel4b > deleteoldrdn: 1 > newsuperior: ou=UnitLevel1a,dc=testDomain,dc=com > > juin 16 11:12:41 - ERROR - Error while looking for (st=4a) in > ou=UnitLevel1a: ja > vax.naming.CommunicationException: Software caused connection abort: recv > failed > [Root exception is java.net.SocketException: Software caused connection > abort: > recv failed]; remaining name 'ou=UnitLevel1a' > juin 16 11:12:41 - ERROR - Connection lost! Aborting. > juin 16 11:12:41 - ERROR - Error while synchronizing ID > ou=UnitLevel4b,ou=UnitLe > vel3a,ou=UnitLevel2a,ou=UnitLevel1a: javax.naming.CommunicationException: > Softwa > re caused connection abort: recv failed [Root exception is > java.net.SocketExcept > ion: Software caused connection abort: recv failed]; remaining name > 'ou=UnitLeve > l1a' > dn: > ou=UnitLevel4b,ou=UnitLevel3a,ou=UnitLevel2a,ou=UnitLevel1a,dc=testDomain,dc > =com > changetype: modrdn > newrdn: ou=UnitLevel4b > deleteoldrdn: 1 > newsuperior: ou=UnitLevel1a,dc=testDomain,dc=com > > juin 16 11:12:41 - INFO - Starting clean for ADpam > juin 16 11:12:41 - ERROR - javax.naming.CommunicationException: Software > caused > connection abort: recv failed [Root exception is java.net.SocketException: > Softw > are caused connection abort: recv failed]; remaining name 'ou=UnitLevel1a' > juin 16 11:12:41 - ERROR - Empty or non existant destination (no IDs found) > > My hierarchy is simple as you can see from my ldif : > version: 1 > dn: dc=testDomain,dc=com > objectClass: dcObject > objectClass: organization > o: testOrganisation > dc: testDomain > > dn: cn=Manager,dc=testDomain,dc=com > objectClass: organizationalRole > cn: Manager > > dn: ou=UnitLevel1a,dc=testDomain,dc=com > st: 1a > ou: UnitLevel1a > objectClass: organizationalUnit > telephoneNumber: 0400000000 > > dn: ou=UnitLevel1b,dc=testDomain,dc=com > st: 1b > ou: UnitLevel1b > objectClass: organizationalUnit > telephoneNumber: 0500000000 > > dn: ou=UnitLevel2a,ou=UnitLevel1a,dc=testDomain,dc=com > telephoneNumber: 0478000000 > st: 2a > ou: UnitLevel2a > objectClass: organizationalUnit > > dn: ou=UnitLevel2b,ou=UnitLevel1a,dc=testDomain,dc=com > telephoneNumber: 0477000000 > st: 2b > ou: UnitLevel2b > objectClass: organizationalUnit > > I am sure that the problem comes from something wrong in my lsc.properties > and this particular extract: > # List of defined tasks, seperated by commas > lsc.tasks = ADpam > > # Java class name for the service to read objects from the source > # Either "org.lsc.jndi.SimpleJndiSrcService" for ldap2ldap, or > # "org.lsc.service.SimpleJdbcSrcService" for db2ldap > # According to which service you use here, you only need *one* of the > following sections > lsc.tasks.ADpam.srcService = org.lsc.jndi.SimpleJndiSrcService > > > ### SimpleJndiSrcService parameters > # The parameters in this section only apply to the SimpleJndiSrcService > # This section can safely be deleted if you are not using ldap2ldap > synchronization. > > # Base DN for searches in the directory > lsc.tasks.ADpam.srcService.baseDn = ou=UnitLevel1a > > # Filter to list all entries to synchronize > lsc.tasks.ADpam.srcService.filterAll = > (&(st=*)(objectClass=organizationalUnit)) > > # Attributes to read from all entries used to match objects between source > and destination > lsc.tasks.ADpam.srcService.pivotAttrs = ou st > > # Filter to read one entry to synchronize, based on pivotAttrs above > # This filter may contain one or several pivotAttrs defined above, like > "{attributeName}" > lsc.tasks.ADpam.srcService.filterId = (st={st}) > > # Attributes to read from each entry used to read and write data > lsc.tasks.ADpam.srcService.attrs = ou st telephoneNumber > > Can you explain me what's wrong?
Hi, the log says that LDAP server at 192.168.6.105:10389 is not available. Is the port correct? Clément. _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

