From a7541fc27ec9fd880ce8f13e9c04bec105c5435e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 22 Dec 2011 16:32:31 +0100 Subject: 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. --- source4/librpc/rpc/dcerpc_schannel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/librpc') 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); -- cgit