1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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>
This commit is contained in:
Stefan Metzmacher 2018-01-15 12:00:19 +01:00 committed by Ralph Boehme
parent fe47041b4b
commit 7329706a03
3 changed files with 14 additions and 1 deletions

View File

@ -610,6 +610,7 @@ NTSTATUS rpccli_netlogon_network_logon(
const uint8_t chal[8], const uint8_t chal[8],
DATA_BLOB lm_response, DATA_BLOB lm_response,
DATA_BLOB nt_response, DATA_BLOB nt_response,
enum netr_LogonInfoClass logon_type,
uint8_t *authoritative, uint8_t *authoritative,
uint32_t *flags, uint32_t *flags,
uint16_t *_validation_level, uint16_t *_validation_level,
@ -629,6 +630,16 @@ NTSTATUS rpccli_netlogon_network_logon(
ZERO_STRUCT(lm); ZERO_STRUCT(lm);
ZERO_STRUCT(nt); 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); logon = talloc_zero(mem_ctx, union netr_LogonLevel);
if (!logon) { if (!logon) {
return NT_STATUS_NO_MEMORY; return NT_STATUS_NO_MEMORY;
@ -674,7 +685,7 @@ NTSTATUS rpccli_netlogon_network_logon(
status = netlogon_creds_cli_LogonSamLogon(creds_ctx, status = netlogon_creds_cli_LogonSamLogon(creds_ctx,
binding_handle, binding_handle,
NetlogonNetworkInformation, logon_type,
logon, logon,
mem_ctx, mem_ctx,
&validation_level, &validation_level,

View File

@ -84,6 +84,7 @@ NTSTATUS rpccli_netlogon_network_logon(
const uint8_t chal[8], const uint8_t chal[8],
DATA_BLOB lm_response, DATA_BLOB lm_response,
DATA_BLOB nt_response, DATA_BLOB nt_response,
enum netr_LogonInfoClass logon_type,
uint8_t *authoritative, uint8_t *authoritative,
uint32_t *flags, uint32_t *flags,
uint16_t *_validation_level, uint16_t *_validation_level,

View File

@ -1520,6 +1520,7 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain,
chal, chal,
lm_response, lm_response,
nt_response, nt_response,
NetlogonNetworkInformation,
authoritative, authoritative,
flags, flags,
&validation_level, &validation_level,