@Subscribe
  public void onConfigChange(AmbariConfigurationChangedEvent event) throws AmbariLdapException {
    ldapConnectionTemplateInstance = create(ambariLdapConfigurationProvider.get());
  }
The returned connection template instance is recreated whenever the ambari ldap configuration changes

@param event
@throws AmbariLdapException
ambari-server/src/main/java/org/apache/ambari/server/ldap/service/ads/LdapConnectionTemplateFactory.java