diff options
author | Volker Lendecke <vl@samba.org> | 2017-09-06 13:29:07 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-09-16 08:36:17 +0200 |
commit | 2968bfdd1aa898cb60b125920fb299b2e790a7c7 (patch) | |
tree | 4253aa42fc5f1e2b5105f38b58065503d635a880 /libcli | |
parent | 43c104a8e22dfb665b83771e648214b235698d7e (diff) | |
download | samba-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.c | 11 |
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)) { |