From: Andreas Schneider Date: Thu, 22 Dec 2011 15:32:31 +0000 (+0100) Subject: s4-librpc: Fix netlogon schannel client connect. X-Git-Url: http://git.samba.org/?p=mat%2Fsamba.git;a=commitdiff_plain;h=a7541fc27ec9fd880ce8f13e9c04bec105c5435e s4-librpc: Fix netlogon schannel client connect. As a client we request as much flags as possible. The server checks which flags it supports and returns the same negotiation flags or less. So we need to store the negotiate flags from the server. We need them later if we have to call netr_LogonGetCapabilities. --- diff --git a/source4/librpc/rpc/dcerpc_schannel.c b/source4/librpc/rpc/dcerpc_schannel.c index 9501e3e047..335c34ca35 100644 --- a/source4/librpc/rpc/dcerpc_schannel.c +++ b/source4/librpc/rpc/dcerpc_schannel.c @@ -245,6 +245,8 @@ static void continue_srv_auth2(struct tevent_req *subreq) return; } + s->creds->negotiate_flags = s->remote_negotiate_flags; + /* verify credentials */ if (!netlogon_creds_client_check(s->creds, s->a.out.return_credentials)) { composite_error(c, NT_STATUS_UNSUCCESSFUL);