Source:
<code>private void checkKerberosConfiguration(String domainName, DomainsConfigurationEntry users, DomainsConfigurationEntry passwords, DomainsConfigurationEntry gssapiDomains, DomainsConfigurationEntry userIds, DomainsConfigurationEntry ldapProviderTypes, Map<String,List<String>> ldapServersPerDomainMap, String kerberosConfigFile, String ldapServerPort, boolean isValidate, List<String> ldapServers) throws ManageDomainsResult { Set<Entry<String, String>> gssapiDomainValues = gssapiDomains.getValues(); for (Entry<String, String> currDomain : gssapiDomainValues) { String domain = currDomain.getKey(); String currUserName = users.getValueForDomain(domain); users.setValueForDomain(domain, constructUPN(currUserName, domain)); try { log.info("Testing kerberos configuration for domain: " + domain); List<String> ldapServersPerDomain = ldapServersPerDomainMap.get(domain); KerberosConfigCheck kerberosConfigCheck = new KerberosConfigCheck(ldapServersPerDomain, ldapServerPort); StringBuffer userGuid = new StringBuffer(); kerberosConfigCheck.checkInstallation(domain, <START> currUserName, <END> passwords.getValueForDomain(domain), utilityConfiguration.getJaasFilePath(), kerberosConfigFile, userGuid, LdapProviderType.valueOf(ldapProviderTypes.getValueForDomain(domain))); userIds.setValueForDomain(domain, userGuid.toString()); if (isValidate) { System.out.println("Domain " + domain + " is valid."); System.out.println("The configured user for domain " + domain + " is " + currUserName); } log.info("Successfully tested kerberos configuration for domain: " + domain); } catch (Exception e) { ManageDomainsResult result = new ManageDomainsResult(ManageDomainsResultEnum.FAILURE_WHILE_TESTING_DOMAIN, new String[] { domain, e.getMessage() }); if ((isValidate && reportAllErrors) || ((domainName != null) && !domain.equals(domainName))) { System.out.println("WARNING, domain: " + domain + " may not be functional: " + result.getDetailedMessage()); } else { throw result; } } } }</code><technical_language>revert this change here, prevent bad happening</technical_language>

Target:
private void checkKerberosConfiguration(String domainName, DomainsConfigurationEntry users, DomainsConfigurationEntry passwords, DomainsConfigurationEntry gssapiDomains, DomainsConfigurationEntry userIds, DomainsConfigurationEntry ldapProviderTypes, Map<String,List<String>> ldapServersPerDomainMap, String kerberosConfigFile, String ldapServerPort, boolean isValidate, List<String> ldapServers) throws ManageDomainsResult { Set<Entry<String, String>> gssapiDomainValues = gssapiDomains.getValues(); for (Entry<String, String> currDomain : gssapiDomainValues) { String domain = currDomain.getKey(); String currUserName = users.getValueForDomain(domain); users.setValueForDomain(domain, constructUPN(currUserName, domain)); try { log.info("Testing kerberos configuration for domain: " + domain); List<String> ldapServersPerDomain = ldapServersPerDomainMap.get(domain); KerberosConfigCheck kerberosConfigCheck = new KerberosConfigCheck(ldapServersPerDomain, ldapServerPort); StringBuffer userGuid = new StringBuffer(); kerberosConfigCheck.checkInstallation(domain, users.getValueForDomain(domain), passwords.getValueForDomain(domain), utilityConfiguration.getJaasFilePath(), kerberosConfigFile, userGuid, LdapProviderType.valueOf(ldapProviderTypes.getValueForDomain(domain))); userIds.setValueForDomain(domain, userGuid.toString()); if (isValidate) { System.out.println("Domain " + domain + " is valid."); System.out.println("The configured user for domain " + domain + " is " + currUserName); } log.info("Successfully tested kerberos configuration for domain: " + domain); } catch (Exception e) { ManageDomainsResult result = new ManageDomainsResult(ManageDomainsResultEnum.FAILURE_WHILE_TESTING_DOMAIN, new String[] { domain, e.getMessage() }); if ((isValidate && reportAllErrors) || ((domainName != null) && !domain.equals(domainName))) { System.out.println("WARNING, domain: " + domain + " may not be functional: " + result.getDetailedMessage()); } else { throw result; } } } }