On 10/27/2015 11:14 AM, Colm O hEigeartaigh wrote:
> Thanks Stefan! My hostname is already in /etc/hosts matching "127.0.1.1".
> What else am I missing?
I played a bit with my /etc/hosts and found a setting where I can
reproduce the test failure:
$ cat /etc/hosts
127.0.1.1 t430.localdomain t430
$ hostname -f
t430.localdomain
$ hostname -s
t430
$ hostname -i
127.0.1.1
Note that the FQDN and short host name differ.
The following change then fixed it for me, can you please also try this
change on your machine?
Index:
src/test/java/org/apache/directory/server/kerberos/kdc/KerberosTestUtils.java
===================================================================
---
src/test/java/org/apache/directory/server/kerberos/kdc/KerberosTestUtils.java
(revision 1710685)
+++
src/test/java/org/apache/directory/server/kerberos/kdc/KerberosTestUtils.java
(working copy)
@@ -256,7 +256,7 @@
try
{
InetAddress loopback = InetAddress.getLocalHost();
- hostName = loopback.getHostName();
+ hostName = loopback.getCanonicalHostName();
}
catch ( UnknownHostException e )
{