summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2019-02-01 13:49:49 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-02-20 06:03:09 +0100
commit0e2acf6cfb3dc6e0be9130e20890551ee88fcf60 (patch)
treee5e464948f89247b55f9076620951115bb875b7f /source3/rpcclient
parente8e4f35bb1d7328ef7871c02d7fbb78d970fa71d (diff)
downloadsamba-0e2acf6cfb3dc6e0be9130e20890551ee88fcf60.tar.gz
winbind: Generate and pass logon ID
Generate a random logon_id and pass it in the SamLogon calls. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_netlogon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index 39bee441b73..4db23793c63 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -500,6 +500,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
uint32_t flags = 0;
uint16_t validation_level;
union netr_Validation *validation = NULL;
+ uint64_t logon_id = 0;
/* Check arguments */
@@ -525,6 +526,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
result = NT_STATUS_UNSUCCESSFUL;
goto done;
}
+ logon_id = generate_random_u64();
/* Perform the sam logon */
@@ -536,6 +538,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
username,
password,
workstation,
+ logon_id,
logon_type,
&authoritative,
&flags,