summaryrefslogtreecommitdiffstats
path: root/source3/libnet/libnet_join.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-04 19:04:54 +0100
committerGünther Deschner <gd@samba.org>2008-03-04 19:04:54 +0100
commitd06274b541ac4c4f021ff2fa90690431d2bb87c9 (patch)
treea2fe6dd5c4fa4104f87bccd3239e8cf2764f3e9e /source3/libnet/libnet_join.c
parent29eb63439992bf7d9c7fa99de6a317388aa1a661 (diff)
downloadsamba-d06274b541ac4c4f021ff2fa90690431d2bb87c9.tar.gz
samba-d06274b541ac4c4f021ff2fa90690431d2bb87c9.tar.xz
samba-d06274b541ac4c4f021ff2fa90690431d2bb87c9.zip
Add secure_channel_type to libnetjoin.
Guenther (This used to be commit f88910c1e5186737da4eda5a7a396c3238fc6775)
Diffstat (limited to 'source3/libnet/libnet_join.c')
-rw-r--r--source3/libnet/libnet_join.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 4f9e4c1c864..9bed346b5e5 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -630,7 +630,7 @@ static bool libnet_join_joindomain_store_secrets(TALLOC_CTX *mem_ctx,
if (!secrets_store_machine_password(r->in.machine_password,
r->out.netbios_domain_name,
- SEC_CHAN_WKSTA))
+ r->in.secure_channel_type))
{
DEBUG(1,("Failed to save machine password\n"));
return false;
@@ -1412,6 +1412,8 @@ WERROR libnet_init_JoinCtx(TALLOC_CTX *mem_ctx,
ctx->in.machine_name = talloc_strdup(mem_ctx, global_myname());
W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name);
+ ctx->in.secure_channel_type = SEC_CHAN_WKSTA;
+
*r = ctx;
return WERR_OK;