summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/joindomain.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-12-18 02:52:34 +0100
committerGünther Deschner <gd@samba.org>2007-12-21 15:29:10 +0100
commit62b3fd209d65caba36595dfbcde83fd74f4047b7 (patch)
treea4bd384823756fc135bf72b2dec4570c514491f7 /source3/lib/netapi/joindomain.c
parentfb2c13fe191212f5e782b398fa4dffa42bfba129 (diff)
downloadsamba-62b3fd209d65caba36595dfbcde83fd74f4047b7.tar.gz
samba-62b3fd209d65caba36595dfbcde83fd74f4047b7.tar.bz2
samba-62b3fd209d65caba36595dfbcde83fd74f4047b7.zip
Missed on instance of external creds.
Guenther (This used to be commit 65d50f518766ab0a8115c2599d190e642eb00754)
Diffstat (limited to 'source3/lib/netapi/joindomain.c')
-rw-r--r--source3/lib/netapi/joindomain.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index 8287cd046f..67e53d4391 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -85,8 +85,10 @@ static WERROR NetJoinDomainRemote(TALLOC_CTX *mem_ctx,
status = cli_full_connection(&cli, NULL, server_name,
NULL, 0,
"IPC$", "IPC",
- opt_user_name, opt_workgroup,
- opt_password, 0, Undefined, NULL);
+ ctx->username,
+ ctx->workgroup,
+ ctx->password,
+ 0, Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);