summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-19 23:50:58 +0200
committerVolker Lendecke <vl@samba.org>2008-04-19 23:54:01 +0200
commitfb73de3b927e02fbc056565714ecbe83c7645dc2 (patch)
tree8feaf3687842e7f0707049617f4e1065adce6e4a /source3
parente7f2dc98890b34211b005ad04ad1557157fdaa5b (diff)
downloadsamba-fb73de3b927e02fbc056565714ecbe83c7645dc2.tar.gz
samba-fb73de3b927e02fbc056565714ecbe83c7645dc2.tar.bz2
samba-fb73de3b927e02fbc056565714ecbe83c7645dc2.zip
Set the right domain\user in cli_rpc_pipe_open_ntlmssp_internal
This probably does not matter in current code, but without this it's not possible to do the bind as a different user than the underlying smb user. Jeremy, please check! Thanks, Volker (This used to be commit b90062e33cbde7de4961414fd35a3a588760d002)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 2a2b547b5e..bc49e24df1 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2330,12 +2330,12 @@ static struct rpc_pipe_client *cli_rpc_pipe_open_ntlmssp_internal(struct cli_sta
result->auth.a_u.ntlmssp_state = ntlmssp_state;
- *perr = ntlmssp_set_username(ntlmssp_state, cli->user_name);
+ *perr = ntlmssp_set_username(ntlmssp_state, username);
if (!NT_STATUS_IS_OK(*perr)) {
goto err;
}
- *perr = ntlmssp_set_domain(ntlmssp_state, cli->domain);
+ *perr = ntlmssp_set_domain(ntlmssp_state, domain);
if (!NT_STATUS_IS_OK(*perr)) {
goto err;
}