From 97c30f557aab49f199df07f2a48ba94ad9cc81c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 26 Mar 2009 10:26:59 +0100 Subject: [PATCH] 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 (cherry picked from commit 56d74b62126083dd7e2a60d1b48b03e1b1798c90) --- source3/lib/netapi/cm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c index b676ae63dde..d28b2b21263 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) { -- 2.34.1