summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 1a75c11e9a..086b3c7068 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2847,6 +2847,14 @@ void name_to_fqdn(fstring fqdn, const char *name)
}
}
}
+ if (full && (StrCaseCmp(full, "localhost.localdomain") == 0)) {
+ DEBUG(1, ("WARNING: your /etc/hosts file may be broken!\n"));
+ DEBUGADD(1, (" specifing the machine hostname for address 127.0.0.1 may lead\n"));
+ DEBUGADD(1, (" to Kerberos authentication probelms as localhost.localdomain\n"));
+ DEBUGADD(1, (" may end up to be used instead of the real machine FQDN.\n"));
+ full = hp->h_name;
+ }
+
if (!full) {
full = hp->h_name;
}