summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-31 04:14:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:01 -0500
commit9be4ecf24b6b5dacf4c2891bddb072fa7543753f (patch)
tree4e6af32c9af416f1dcedbb9cbc7575371eb8051d /source/libsmb
parent408267a2d725a0596be37b019fe4513502b2c0ec (diff)
downloadsamba-9be4ecf24b6b5dacf4c2891bddb072fa7543753f.tar.gz
samba-9be4ecf24b6b5dacf4c2891bddb072fa7543753f.tar.xz
samba-9be4ecf24b6b5dacf4c2891bddb072fa7543753f.zip
r17945: Store the server and client sitenames in the ADS
struct so we can see when they match - only create the ugly krb5 hack when they do. Jeremy.
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/namequery_dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libsmb/namequery_dc.c b/source/libsmb/namequery_dc.c
index 4099cc9dd8f..cf01fb269ed 100644
--- a/source/libsmb/namequery_dc.c
+++ b/source/libsmb/namequery_dc.c
@@ -68,7 +68,7 @@ static BOOL ads_dc_name(const char *domain,
has changed. If so, we need to re-do the DNS query
to ensure we only find servers in our site. */
- if (sitename_changed(sitename)) {
+ if (stored_sitename_changed(sitename)) {
SAFE_FREE(sitename);
sitename = sitename_fetch();
ads_destroy(&ads);
@@ -76,7 +76,7 @@ static BOOL ads_dc_name(const char *domain,
}
#ifdef HAVE_KRB5
- if ((ads->config.flags & ADS_KDC) && sitename) {
+ if ((ads->config.flags & ADS_KDC) && ads_sitename_match(ads)) {
/* We're going to use this KDC for this realm/domain.
If we are using sites, then force the krb5 libs
to use this KDC. */