summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos.c3
-rw-r--r--source3/libads/ldap.c9
2 files changed, 10 insertions, 2 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index 0707427a22..fb15ace7c7 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -484,6 +484,9 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do
return False;
}
+ DEBUG(10,("create_local_private_krb5_conf_for_domain: fname = %s, realm = %s, domain = %s\n",
+ fname, realm, domain ));
+
realm_upper = talloc_strdup(fname, realm);
strupper_m(realm_upper);
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 4fbb0c7af3..b23bc277e8 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -124,14 +124,19 @@ BOOL ads_sitename_match(ADS_STRUCT *ads)
{
if (ads->config.server_site_name == NULL &&
ads->config.client_site_name == NULL ) {
+ DEBUG(10,("ads_sitename_match: both null\n"));
return True;
}
if (ads->config.server_site_name &&
ads->config.client_site_name &&
strequal(ads->config.server_site_name,
ads->config.client_site_name)) {
+ DEBUG(10,("ads_sitename_match: name %s match\n", ads->config.server_site_name));
return True;
}
+ DEBUG(10,("ads_sitename_match: no match %s %s\n",
+ ads->config.server_site_name ? ads->config.server_site_name : "NULL",
+ ads->config.client_site_name ? ads->config.client_site_name : "NULL"));
return False;
}
#endif
@@ -192,8 +197,8 @@ BOOL ads_try_connect(ADS_STRUCT *ads, const char *server )
SMB_STRDUP(cldap_reply.server_site_name);
}
if (*cldap_reply.client_site_name) {
- ads->config.server_site_name =
- SMB_STRDUP(cldap_reply.server_site_name);
+ ads->config.client_site_name =
+ SMB_STRDUP(cldap_reply.client_site_name);
}
ads->server.workgroup = SMB_STRDUP(cldap_reply.netbios_domain);