summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-27 13:00:23 +0100
committerVolker Lendecke <vl@samba.org>2008-03-27 13:11:10 +0100
commit0d617f639a3c9c52e4327aed4bd02d9e8e7312a2 (patch)
tree08ebb95db6b0b6187586e48230853fe92eac3f99
parent7eb4f6f6f9f27cda3d512f4042e36d70d0b26b6b (diff)
downloadsamba-0d617f639a3c9c52e4327aed4bd02d9e8e7312a2.tar.gz
samba-0d617f639a3c9c52e4327aed4bd02d9e8e7312a2.tar.xz
samba-0d617f639a3c9c52e4327aed4bd02d9e8e7312a2.zip
Fix wbinfo -a trusted\\user%password on a Samba DC with trusts
Winbind can't be allowed to connect to the local smbd.
-rw-r--r--source/winbindd/winbindd_cache.c5
-rw-r--r--source/winbindd/winbindd_dual.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/source/winbindd/winbindd_cache.c b/source/winbindd/winbindd_cache.c
index 4d81ee39600..a8a98e5bc87 100644
--- a/source/winbindd/winbindd_cache.c
+++ b/source/winbindd/winbindd_cache.c
@@ -37,6 +37,7 @@ extern bool opt_nocache;
#ifdef HAVE_ADS
extern struct winbindd_methods ads_methods;
#endif
+extern struct winbindd_methods passdb_methods;
/*
* JRA. KEEP THIS LIST UP TO DATE IF YOU ADD CACHE ENTRIES.
@@ -135,6 +136,10 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain)
/* We have to know what type of domain we are dealing with first. */
+ if (domain->internal) {
+ domain->backend = &passdb_methods;
+ domain->initialized = True;
+ }
if ( !domain->initialized ) {
init_dc_connection( domain );
}
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index 2b756b24d17..3c342e54a47 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -1089,7 +1089,6 @@ static bool fork_domain_child(struct winbindd_child *child)
* but not the main daemon */
if (child->domain && child->domain->internal && IS_DC) {
- child->domain->internal = False;
child->domain->methods = &cache_methods;
child->domain->online = False;
}