From: Gerald Carter Date: Thu, 31 Mar 2005 20:11:20 +0000 (+0000) Subject: r6154: fix winbindd <-> Windows 2003 sp1 issue. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5002 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82e3a9d9b526522376ea967c66c67b02f2c68dd8;p=thirdparty%2Fsamba.git r6154: fix winbindd <-> Windows 2003 sp1 issue. Can't do LsaOpenPolicy() over schannel anymore. This is an interesting find as it could imply that there are other changes we haven't seen yet in sp1. Volker, You might want to look at this for trunk. --- diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index dc2d6cfc6f6..e6a7df19775 100644 --- a/source/nsswitch/winbindd_cm.c +++ b/source/nsswitch/winbindd_cm.c @@ -376,7 +376,11 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain, got_mutex = False; *retry = False; - if (domain->primary || IS_DC) { + /* Windows 2003 SP1 does not lie LsaOpenPolicy() over schannel. + Returns RPC_NT_CANNOT_SUPPPORT (0xc0020041) for that call. + So just drop it on the lsarpc pipe */ + + if ( (domain->primary || IS_DC) && (pipe_index!=PI_LSARPC) ) { NTSTATUS status = setup_schannel( *cli, domain->name ); if (!NT_STATUS_IS_OK(status)) { DEBUG(3,("schannel refused - continuing without "