diff options
author | Simo Sorce <idra@samba.org> | 2006-09-14 16:29:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:51:47 -0500 |
commit | f560ee201da836e936ad7386eef8f22b7e78e07e (patch) | |
tree | dcc0b6496e67026d713148e74a295419f16c70a6 /source3/lib | |
parent | fcec9a23e951c40342cd37443cd16a213101eb41 (diff) | |
download | samba-f560ee201da836e936ad7386eef8f22b7e78e07e.tar.gz samba-f560ee201da836e936ad7386eef8f22b7e78e07e.tar.bz2 samba-f560ee201da836e936ad7386eef8f22b7e78e07e.zip |
r18529: warn the user that putting the machine host name on the
127.0.0.1 line in /etc/hosts is not ok for Kerberos.
(This used to be commit 85126391e11006514af8e6c6b88eb7fa21abf49a)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 8 |
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; } |