diff options
author | Jeremy Allison <jra@samba.org> | 2006-09-02 01:23:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:39:45 -0500 |
commit | 0c9ca3fe19249c19ac3525f3e6e19242b3e77f7f (patch) | |
tree | 82f2ce1064950b62752bc131fc30c51a42722e3c /source3/libads | |
parent | 56fc28708060c398cd651e46a6a29c12936eb580 (diff) | |
download | samba-0c9ca3fe19249c19ac3525f3e6e19242b3e77f7f.tar.gz samba-0c9ca3fe19249c19ac3525f3e6e19242b3e77f7f.tar.bz2 samba-0c9ca3fe19249c19ac3525f3e6e19242b3e77f7f.zip |
r17994: Add debugs that showed me why my site code wasn't
working right. Don't update the server site when we
have a client one...
Jeremy.
(This used to be commit 7acbcf9a6c71f8e7f9167880488613c930cef4d9)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos.c | 3 | ||||
-rw-r--r-- | source3/libads/ldap.c | 9 |
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); |