diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-02-01 09:41:18 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-02-20 06:03:09 +0100 |
commit | 62e4f8f3b2ad570f584a2b666cb6a53d53f9d5de (patch) | |
tree | 5093eadce76603c3e3d2ac89c2593ad3f81e5014 /source4/rpc_server | |
parent | d486a199598b75014c5e897543aff51b5af8d0a1 (diff) | |
download | samba-62e4f8f3b2ad570f584a2b666cb6a53d53f9d5de.tar.gz |
s4 rpc netlogon: Pass logon_id to auth logging
Pass the logon_id passed in the netlogon identity information to
auth_logging.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/netlogon/dcerpc_netlogon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c index 530350d442a..0bb350aa9a8 100644 --- a/source4/rpc_server/netlogon/dcerpc_netlogon.c +++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c @@ -1056,6 +1056,9 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base_call(struct dcesrv_netr_LogonSamL NT_STATUS_HAVE_NO_MEMORY(user_info->password.hash.nt); *user_info->password.hash.nt = r->in.logon->password->ntpassword; + user_info->logon_id + = r->in.logon->password->identity_info.logon_id; + break; case NetlogonNetworkInformation: case NetlogonNetworkTransitiveInformation: @@ -1080,6 +1083,9 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base_call(struct dcesrv_netr_LogonSamL user_info->password.response.lanman = data_blob_talloc(mem_ctx, r->in.logon->network->lm.data, r->in.logon->network->lm.length); user_info->password.response.nt = data_blob_talloc(mem_ctx, r->in.logon->network->nt.data, r->in.logon->network->nt.length); + user_info->logon_id + = r->in.logon->network->identity_info.logon_id; + nt_status = NTLMv2_RESPONSE_verify_netlogon_creds( user_info->client.account_name, user_info->client.domain_name, @@ -1108,6 +1114,9 @@ static NTSTATUS dcesrv_netr_LogonSamLogon_base_call(struct dcesrv_netr_LogonSamL r->out.validation->generic = generic; + user_info->logon_id + = r->in.logon->generic->identity_info.logon_id; + irpc_handle = irpc_binding_handle_by_name(mem_ctx, dce_call->msg_ctx, "kdc_server", |