r10722: Remove unused BOOL in struct dcinfo.
authorJeremy Allison <jra@samba.org>
Wed, 5 Oct 2005 01:47:52 +0000 (01:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:04:51 +0000 (11:04 -0500)
Ensure that the mach_acct and remote machine entries are
set correctly in struct dcinfo - we'll need this as a key
for a persistent schannel state later.
Jeremy.
(This used to be commit 47269b5c7161d740c2e86227de3acd9e08c53817)

source3/include/ntdomain.h
source3/rpc_server/srv_netlog_nt.c

index 967aac2bb5f06fe9f4ea36e6fc089f2fa6a66d7f..fd36006c0b7176fa8d854c2e97234cd44d8995b3 100644 (file)
@@ -149,7 +149,6 @@ struct dcinfo {
        fstring domain;
 
        BOOL challenge_sent;
-       BOOL got_session_key;
        BOOL authenticated;
 };
 
index 5aefe3ca3c977d717d1615afed370b29925178ce..a89e3d572ac3fc73946becc0caac819898fff2ef 100644 (file)
@@ -436,10 +436,14 @@ NTSTATUS _net_auth_2(pipes_struct *p, NET_Q_AUTH_2 *q_u, NET_R_AUTH_2 *r_u)
        /* set up the LSA AUTH 2 response */
        init_net_r_auth_2(r_u, &srv_chal_out, &srv_flgs, NT_STATUS_OK);
 
+       fstrcpy(p->dc->mach_acct, mach_acct);
+       fstrcpy(p->dc->remote_machine, remote_machine);
+
        server_auth2_negotiated = True;
        p->dc->authenticated = True;
        last_dcinfo = *p->dc;
 
+       //secrets_store_schannel_session_info(p->dc);
        return r_u->status;
 }