r951: from w2k3 behaviour, the netlogon server is supposed to give back the negotiate...
authorAndrew Tridgell <tridge@samba.org>
Sun, 30 May 2004 13:27:14 +0000 (13:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:21 +0000 (12:56 -0500)
(This used to be commit 7ad56fc4db37009dc2dba376724fdfb650f65611)

source4/rpc_server/netlogon/dcerpc_netlogon.c

index 523b042845407cd7f3d83baf95cb9917000d9558..81d37d0984bc1b6e0029c3ed3f0f471bc6f3a605 100644 (file)
@@ -147,8 +147,8 @@ static NTSTATUS netr_ServerAuthenticate3(struct dcesrv_call_state *dce_call, TAL
                               "objectSid", NULL};
 
        ZERO_STRUCTP(r->out.credentials);
-       *r->out.negotiate_flags = 0;
        *r->out.rid = 0;
+       *r->out.negotiate_flags = *r->in.negotiate_flags & NETLOGON_NEG_AUTH2_FLAGS;
 
        if (!pipe_state) {
                DEBUG(1, ("No challange requested by client, cannot authenticate\n"));