summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-26 10:26:59 +0100
committerGünther Deschner <gd@samba.org>2009-03-26 10:43:18 +0100
commit56d74b62126083dd7e2a60d1b48b03e1b1798c90 (patch)
tree1087aa2580d96f3ceec00394ba071dfecc209df3 /source3
parentfe340eb92fd2e5dfef977dc391d2a43ce970e0ea (diff)
downloadsamba-56d74b62126083dd7e2a60d1b48b03e1b1798c90.tar.gz
samba-56d74b62126083dd7e2a60d1b48b03e1b1798c90.tar.bz2
samba-56d74b62126083dd7e2a60d1b48b03e1b1798c90.zip
s3-libnetapi: fix creds in libnetapi_open_ipc_connection().
Jeremy, this broke with 8dd1faaa2992851f6852ba7ea4498445af5faadd. Not sure if other users broke as well with that change. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/cm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c
index b676ae63dd..d28b2b2126 100644
--- a/source3/lib/netapi/cm.c
+++ b/source3/lib/netapi/cm.c
@@ -57,6 +57,11 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
false, false,
PROTOCOL_NT1,
0, 0x20);
+ if (cli_ipc) {
+ cli_set_username(cli_ipc, ctx->username);
+ cli_set_password(cli_ipc, ctx->password);
+ cli_set_domain(cli_ipc, ctx->workgroup);
+ }
TALLOC_FREE(auth_info);
if (!cli_ipc) {