diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-01-15 12:00:19 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2018-02-10 08:35:15 +0100 |
commit | 7329706a037fef75e8ced63bfb7ab93b64482eda (patch) | |
tree | 35d0ed35309f5e9ac37f97673ea9eb05e9965e2e /source3/rpc_client | |
parent | fe47041b4bf8d2ef6f6f9ba15a80038f1c60da3f (diff) | |
download | samba-7329706a037fef75e8ced63bfb7ab93b64482eda.tar.gz |
s3:rpc_client: allow passing NetlogonNetwork[Transitive]Information to rpccli_netlogon_network_logon()
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13234
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 13 | ||||
-rw-r--r-- | source3/rpc_client/cli_netlogon.h | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 7dc69c066c7..d8ccce72e0d 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -610,6 +610,7 @@ NTSTATUS rpccli_netlogon_network_logon( const uint8_t chal[8], DATA_BLOB lm_response, DATA_BLOB nt_response, + enum netr_LogonInfoClass logon_type, uint8_t *authoritative, uint32_t *flags, uint16_t *_validation_level, @@ -629,6 +630,16 @@ NTSTATUS rpccli_netlogon_network_logon( ZERO_STRUCT(lm); ZERO_STRUCT(nt); + switch (logon_type) { + case NetlogonNetworkInformation: + case NetlogonNetworkTransitiveInformation: + break; + default: + DEBUG(0, ("switch value %d not supported\n", + logon_type)); + return NT_STATUS_INVALID_INFO_CLASS; + } + logon = talloc_zero(mem_ctx, union netr_LogonLevel); if (!logon) { return NT_STATUS_NO_MEMORY; @@ -674,7 +685,7 @@ NTSTATUS rpccli_netlogon_network_logon( status = netlogon_creds_cli_LogonSamLogon(creds_ctx, binding_handle, - NetlogonNetworkInformation, + logon_type, logon, mem_ctx, &validation_level, diff --git a/source3/rpc_client/cli_netlogon.h b/source3/rpc_client/cli_netlogon.h index d31bdee461f..dc04c0b0676 100644 --- a/source3/rpc_client/cli_netlogon.h +++ b/source3/rpc_client/cli_netlogon.h @@ -84,6 +84,7 @@ NTSTATUS rpccli_netlogon_network_logon( const uint8_t chal[8], DATA_BLOB lm_response, DATA_BLOB nt_response, + enum netr_LogonInfoClass logon_type, uint8_t *authoritative, uint32_t *flags, uint16_t *_validation_level, |