From 2968bfdd1aa898cb60b125920fb299b2e790a7c7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 6 Sep 2017 13:29:07 +0200 Subject: netlogon_creds_cli: Add "dns_domain" to netlogon_creds_cli_context Used later for creating schannel cli_credentials Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- libcli/auth/netlogon_creds_cli.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libcli') diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index 526ee3962fc..854645caf6d 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -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)) { -- cgit v1.2.1