1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

netlogon_creds_cli: Add "dns_domain" to netlogon_creds_cli_context

Used later for creating schannel cli_credentials

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Volker Lendecke 2017-09-06 13:29:07 +02:00 committed by Andrew Bartlett
parent 43c104a8e2
commit 2968bfdd1a

View File

@ -54,6 +54,7 @@ struct netlogon_creds_cli_context {
struct {
const char *computer;
const char *netbios_domain;
const char *dns_domain;
uint32_t cached_flags;
bool try_validation6;
bool try_logon_ex;
@ -105,6 +106,7 @@ static NTSTATUS netlogon_creds_cli_context_common(
uint32_t required_flags,
const char *server_computer,
const char *server_netbios_domain,
const char *server_dns_domain,
TALLOC_CTX *mem_ctx,
struct netlogon_creds_cli_context **_context)
{
@ -155,6 +157,13 @@ static NTSTATUS netlogon_creds_cli_context_common(
return NT_STATUS_NO_MEMORY;
}
context->server.dns_domain = talloc_strdup(context, server_dns_domain);
if (context->server.dns_domain == NULL) {
TALLOC_FREE(context);
TALLOC_FREE(frame);
return NT_STATUS_NO_MEMORY;
}
/*
* TODO:
* Force the callers to provide a unique
@ -415,6 +424,7 @@ NTSTATUS netlogon_creds_cli_context_global(struct loadparm_context *lp_ctx,
required_flags,
server_computer,
server_netbios_domain,
"",
mem_ctx,
&context);
if (!NT_STATUS_IS_OK(status)) {
@ -475,6 +485,7 @@ NTSTATUS netlogon_creds_cli_context_tmp(const char *client_computer,
required_flags,
server_computer,
server_netbios_domain,
"",
mem_ctx,
&context);
if (!NT_STATUS_IS_OK(status)) {