summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-09-06 13:29:07 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-09-16 08:36:17 +0200
commit2968bfdd1aa898cb60b125920fb299b2e790a7c7 (patch)
tree4253aa42fc5f1e2b5105f38b58065503d635a880 /libcli
parent43c104a8e22dfb665b83771e648214b235698d7e (diff)
downloadsamba-2968bfdd1aa898cb60b125920fb299b2e790a7c7.tar.gz
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>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/netlogon_creds_cli.c11
1 files changed, 11 insertions, 0 deletions
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)) {