summaryrefslogtreecommitdiff
path: root/source3/libsmb/namequery.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-09-02 20:17:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:47 -0500
commit380c4183ee765c01c9ad3054764437434ee6c61f (patch)
tree610ce27e480a50769302859674a80e3dd570a4b7 /source3/libsmb/namequery.c
parent0f1bc28744d8c7cae2fe2774b50fc4336408a74d (diff)
downloadsamba-380c4183ee765c01c9ad3054764437434ee6c61f.tar.gz
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)
Diffstat (limited to 'source3/libsmb/namequery.c')
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index af3ac319cc2..5cd09fd04f1 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")) {