s4-librpc: Fix netlogon schannel client connect.
authorAndreas Schneider <asn@samba.org>
Thu, 22 Dec 2011 15:32:31 +0000 (16:32 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 22 Dec 2011 16:48:24 +0000 (17:48 +0100)
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

index 9501e3e047ef0f1aff3b260a68c8e42ad29ab1eb..335c34ca35d30c92a53a29c22525e4c3557a0395 100644 (file)
@@ -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);