diff options
author | Jeremy Allison <jra@samba.org> | 2006-09-07 16:51:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:51:16 -0500 |
commit | d07458bd67a29c0a8abfa6e72115732e18f51b2f (patch) | |
tree | 8ce95e1902e4291fdffdc539f72e04439b68b3a8 /source3/nsswitch/winbindd_cm.c | |
parent | 253c01f29ee8b0287eb47a29683a54ec846d142e (diff) | |
download | samba-d07458bd67a29c0a8abfa6e72115732e18f51b2f.tar.gz samba-d07458bd67a29c0a8abfa6e72115732e18f51b2f.tar.bz2 samba-d07458bd67a29c0a8abfa6e72115732e18f51b2f.zip |
r18224: Paranoia - ensure the oplock event handler is
removed immediately in the handler.
Extra debug info tracking down winbindd DC
selection.
Jeremy.
(This used to be commit 7ba9b6ce588f716589e9f88ed146fad36c4b3758)
Diffstat (limited to 'source3/nsswitch/winbindd_cm.c')
-rw-r--r-- | source3/nsswitch/winbindd_cm.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index 1aab918f69..ff2567d3e5 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -296,6 +296,9 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, struct sockaddr_in *peeraddr_in = (struct sockaddr_in *)&peeraddr; + DEBUG(10,("cm_prepare_connection: connecting to DC %s for domain %s\n", + controller, domain->name )); + machine_password = secrets_fetch_machine_password(lp_workgroup(), NULL, NULL); @@ -921,6 +924,9 @@ static NTSTATUS cm_open_connection(struct winbindd_domain *domain, if ( saf_servername && NT_STATUS_IS_OK(check_negative_conn_cache( domain->name, saf_servername))) { + DEBUG(10,("cm_open_connection: saf_servername is '%s' for domain %s\n", + saf_servername, domain->name )); + /* convert an ip address to a name */ if ( is_ipaddress( saf_servername ) ) { fstring saf_name; @@ -949,7 +955,10 @@ static NTSTATUS cm_open_connection(struct winbindd_domain *domain, result = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND; - if ((strlen(domain->dcname) > 0) + DEBUG(10,("cm_open_connection: dcname is '%s' for domain %s\n", + domain->dcname, domain->name )); + + if (*domain->dcname && NT_STATUS_IS_OK(check_negative_conn_cache( domain->name, domain->dcname)) && (resolve_name(domain->dcname, &domain->dcaddr.sin_addr, 0x20))) { |