[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-3077-g84951b5
Jeremy Allison
jra at samba.org
Mon Oct 6 21:12:07 GMT 2008
The branch, v3-2-test has been updated
via 84951b54bc1473aa9275c02cc37a9f0d7d4150e2 (commit)
via f63bac521f0595ccbcf687678e325649f3e0e5e3 (commit)
from 41aed9f2f3c6d53e1b8b6d72467bc5d5a0689dce (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 84951b54bc1473aa9275c02cc37a9f0d7d4150e2
Author: Volker Lendecke <vl at samba.org>
Date: Mon Oct 6 14:10:23 2008 -0700
If name_to_fqdn fails, retry with the dns domain the DC gave us
This is a workaround for the cases where you want to join under a netbios name
that is different from your hostname, i.e. a name that can not be found in
/etc/hosts or dns. In these cases, name_to_fqdn fails or gives invalid results.
commit f63bac521f0595ccbcf687678e325649f3e0e5e3
Author: Volker Lendecke <vl at samba.org>
Date: Mon Oct 6 14:10:10 2008 -0700
Log in the parent winbind log where a request is going
-----------------------------------------------------------------------
Summary of changes:
source/libnet/libnet_join.c | 11 ++++++++---
source/winbindd/winbindd_dual.c | 4 ++++
2 files changed, 12 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c
index 86cbce0..7451cb2 100644
--- a/source/libnet/libnet_join.c
+++ b/source/libnet/libnet_join.c
@@ -357,10 +357,15 @@ static ADS_STATUS libnet_join_set_machine_spn(TALLOC_CTX *mem_ctx,
strupper_m(spn);
spn_array[0] = spn;
- if (name_to_fqdn(my_fqdn, r->in.machine_name) &&
- !strequal(my_fqdn, r->in.machine_name)) {
+ if (!name_to_fqdn(my_fqdn, r->in.machine_name)
+ || (strchr(my_fqdn, '.') == NULL)) {
+ fstr_sprintf(my_fqdn, "%s.%s", r->in.machine_name,
+ r->out.dns_domain_name);
+ }
+
+ strlower_m(my_fqdn);
- strlower_m(my_fqdn);
+ if (!strequal(my_fqdn, r->in.machine_name)) {
spn = talloc_asprintf(mem_ctx, "HOST/%s", my_fqdn);
if (!spn) {
return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index 9a85c0c..de6ad61 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -120,6 +120,10 @@ void async_request(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
SMB_ASSERT(continuation != NULL);
+ DEBUG(10, ("Sending request to child pid %d (domain=%s)\n",
+ (int)child->pid,
+ (child->domain != NULL) ? child->domain->name : "''"));
+
state = TALLOC_P(mem_ctx, struct winbindd_async_request);
if (state == NULL) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list