mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
fe47041b4b
commit
7329706a03
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -1520,6 +1520,7 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain,
|
||||
chal,
|
||||
lm_response,
|
||||
nt_response,
|
||||
NetlogonNetworkInformation,
|
||||
authoritative,
|
||||
flags,
|
||||
&validation_level,
|
||||
|
Loading…
Reference in New Issue
Block a user