In the documentation it is stated how to assemble the XML files for syncing the users via LDAP sync tool:
Configuring LDAP Sync Client Settings (automic.com)
LDAP Sync documentation states that you can define multiple domain controllers with comma separated:
url: The IP address of the LDAP server or its fully qualified domain name and communication port on which the LDAP server listens.
Note: To specify multiple servers, separate the url entries with a comma. The first server where a connection can be established will be used.
Example: ad01.mycompany.com:389,ad02.mycompany.com:389
However when this is done, for example:
<Connection serverName="adservers_from_domain" directoryType="AD" url="domaincontroller1.domain.com:port,domaincontroller2.domain.com:port" useSSL="true" connectionTimeout="0" readTimeout="120" searchTimeout="60" username="domain\user" password="password" retryConnect="10"/>
LDAP Sync will fail to connect to the LDAP Servers with the error below:
[main] c.a.s.l.LDAPSynchronizer ERROR Could not connect to LDAP server. Please check LDAP username and password.
com.automic.sara.ldapsync.ldap.LdapOpenConnectionException: Could not connect to LDAP server. Please check LDAP username and password.
at com.automic.sara.ldapsync.ldap.LDAPService.start(LDAPService.java:107)
at com.automic.sara.ldapsync.steps.InitializeStep.execute(InitializeStep.java:30)
at com.automic.sara.ldapsync.SynchronizationStepChain.execute(SynchronizationStepChain.java:33)
at com.automic.sara.ldapsync.LDAPSynchronizer.run(LDAPSynchronizer.java:58)
at com.automic.sara.ldapsync.LDAPSynchronizer.main(LDAPSynchronizer.java:28)
Release : 12.x and 21.x
Component: Automation Engine
Sub-Component: LDAP Sync
Defect in LDAP Sync
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Ldap Sync
Will be fixed in Automation.Engine 21.0.6 - Planned release Second Half May 2023
Solution Details:A problem was solved in LDAP Sync where url parameter set with multiple ldap servers.