Trying to fix localhost hostname usage, take2
This commit is contained in:
@@ -70,7 +70,7 @@ public class KerberosRestTemplateTests extends KerberosSecurityTestcase {
|
||||
|
||||
MiniKdc kdc = getKdc();
|
||||
File workDir = getWorkDir();
|
||||
String host = InetAddress.getLocalHost().getHostName();
|
||||
String host = InetAddress.getLocalHost().getCanonicalHostName();
|
||||
|
||||
String serverPrincipal = "HTTP/" + host;
|
||||
File serverKeytab = new File(workDir, "server.keytab");
|
||||
|
||||
@@ -252,6 +252,7 @@ public class MiniKdc {
|
||||
LOG.info(" {}: {}", entry.getKey(), entry.getValue());
|
||||
}
|
||||
LOG.info(" localhost hostname: {}", InetAddress.getLocalHost().getHostName());
|
||||
LOG.info(" localhost canonical hostname: {}", InetAddress.getLocalHost().getCanonicalHostName());
|
||||
LOG.info("---------------------------------------------------------------");
|
||||
this.conf = conf;
|
||||
port = Integer.parseInt(conf.getProperty(KDC_PORT));
|
||||
|
||||
Reference in New Issue
Block a user