From 380c4183ee765c01c9ad3054764437434ee6c61f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 2 Sep 2006 20:17:05 +0000 Subject: r18007: Ensure we don't namecache KDC entries with port 88 as a generic DC (that should be the LDAP port). Jeremy. (This used to be commit f16b41c3c92b1af5cf25d8d244b1f551573cb076) --- source3/libsmb/namequery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index af3ac319cc..5cd09fd04f 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -1197,6 +1197,8 @@ BOOL internal_resolve_name(const char *name, int name_type, SRV record lookup */ if (resolve_ads(name, KDC_NAME_TYPE, return_iplist, return_count)) { result = True; + /* Ensure we don't namecache this with the KDC port. */ + name_type = KDC_NAME_TYPE; goto done; } } else if(strequal( tok, "ads")) { -- cgit