SOLR-9200: Prepare Locale before starting MiniKdc

This commit is contained in:
Gregory Chanan 2016-08-02 11:27:12 -04:00
parent 209bfcf021
commit c60cd2529b
1 changed files with 4 additions and 3 deletions

View File

@ -52,12 +52,13 @@ public class KerberosTestServices {
}
public void start() throws Exception {
if (kdc != null) kdc.start();
Configuration.setConfiguration(jaasConfiguration);
Krb5HttpClientBuilder.regenerateJaasConfiguration();
if (brokenLanguagesWithMiniKdc.contains(Locale.getDefault().getLanguage())) {
Locale.setDefault(Locale.US);
}
if (kdc != null) kdc.start();
Configuration.setConfiguration(jaasConfiguration);
Krb5HttpClientBuilder.regenerateJaasConfiguration();
}
public void stop() {