summaryrefslogtreecommitdiff
path: root/source4/heimdal/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-09-21 22:55:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:39 -0500
commit3b7f8ddd9a7c0d372a0585790913ac95c9eb3324 (patch)
tree7eb8e1ba7394573ce6eac56d873f3801d7a45209 /source4/heimdal/lib
parente0febb258a29ac5deb034075219114337f468001 (diff)
downloadsamba-3b7f8ddd9a7c0d372a0585790913ac95c9eb3324.tar.gz
samba-3b7f8ddd9a7c0d372a0585790913ac95c9eb3324.tar.bz2
samba-3b7f8ddd9a7c0d372a0585790913ac95c9eb3324.zip
r10398: Don't do DNS lookups on short names (no .).
Andrew Bartlett (This used to be commit 77aca9619d24a8e118f53bcd1a1e54b8437812a8)
Diffstat (limited to 'source4/heimdal/lib')
-rw-r--r--source4/heimdal/lib/krb5/krbhst.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/heimdal/lib/krb5/krbhst.c b/source4/heimdal/lib/krb5/krbhst.c
index 49eee08ca5..98e9cb3f09 100644
--- a/source4/heimdal/lib/krb5/krbhst.c
+++ b/source4/heimdal/lib/krb5/krbhst.c
@@ -634,6 +634,11 @@ common_init(krb5_context context,
return NULL;
}
+ /* For 'realms' without a . do not even think of going to DNS */
+ if (!strchr(realm, '.')) {
+ kd->flags |= KD_CONFIG_EXISTS;
+ }
+
if (flags & KRB5_KRBHST_FLAGS_LARGE_MSG)
kd->flags |= KD_LARGE_MSG;
kd->end = kd->index = &kd->hosts;