svn commit: samba r18529 - in branches/SAMBA_3_0/source/lib: .
idra at samba.org
idra at samba.org
Thu Sep 14 16:29:07 GMT 2006
Author: idra
Date: 2006-09-14 16:29:07 +0000 (Thu, 14 Sep 2006)
New Revision: 18529
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18529
Log:
warn the user that putting the machine host name on the
127.0.0.1 line in /etc/hosts is not ok for Kerberos.
Modified:
branches/SAMBA_3_0/source/lib/util.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/util.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util.c 2006-09-14 16:08:13 UTC (rev 18528)
+++ branches/SAMBA_3_0/source/lib/util.c 2006-09-14 16:29:07 UTC (rev 18529)
@@ -2847,6 +2847,14 @@
}
}
}
+ 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;
}
More information about the samba-cvs
mailing list