summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_cm.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-17 09:43:36 +0200
committerGünther Deschner <gd@samba.org>2009-09-22 16:49:31 +0200
commit6a8ef6c424c52be861ed2a9806f917a64ec892a6 (patch)
treea58276ea0a7e97f5974702a8fed5501e96bd759c /source3/winbindd/winbindd_cm.c
parent58f2deb94024f002e3c3df47f45454edc97f47e1 (diff)
downloadsamba-6a8ef6c424c52be861ed2a9806f917a64ec892a6.tar.gz
samba-6a8ef6c424c52be861ed2a9806f917a64ec892a6.tar.bz2
samba-6a8ef6c424c52be861ed2a9806f917a64ec892a6.zip
s3-winbindd: Fix Bug #6711: trusts to windows 2008 (2008 r2) not working.
Winbindd should always try to use LSA via an schannel authenticated ncacn_ip_tcp connection when talking to AD for LSA lookup calls. In Samba <-> W2k8 interdomain trust scenarios, LookupSids3 and LookupNames4 via an schannel ncacn_ip_tcp LSA connection are the *only* options to successfully resolve sids and names. Guenther
Diffstat (limited to 'source3/winbindd/winbindd_cm.c')
-rw-r--r--source3/winbindd/winbindd_cm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index b430fbb401..d03a580d78 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -1943,6 +1943,8 @@ done:
DEBUG(5,("set_dc_type_and_flags_connect: domain %s is %srunning active directory.\n",
domain->name, domain->active_directory ? "" : "NOT "));
+ domain->can_do_ncacn_ip_tcp = domain->active_directory;
+
TALLOC_FREE(cli);
TALLOC_FREE(mem_ctx);