{
if (this.ldapConnectors.isEmpty()) {
for (CLdapServerConfiguration ldapServer : this.ldapConfigurationManager.listLdapServerConfigurations()) {
// first get the connector for the server
LdapConnector originalLdapConnector =
new DefaultLdapConnector(ldapServer.getId(), this.ldapUserManager, this.ldapGroupManager,
this.getLdapContextFactory(ldapServer, false),
this.getLdapAuthConfiguration(ldapServer));
LdapConnector backupLdapConnector = null;
// if we have a backup mirror defined we need to include that
if (StringUtils.isNotEmpty(ldapServer.getConnectionInfo().getBackupMirrorHost())
&& ldapServer.getConnectionInfo().getBackupMirrorPort() > 0
&& StringUtils.isNotEmpty(ldapServer.getConnectionInfo().getBackupMirrorProtocol())) {