From: Volker Lendecke Date: Sat, 19 Apr 2008 21:50:58 +0000 (+0200) Subject: Set the right domain\user in cli_rpc_pipe_open_ntlmssp_internal X-Git-Tag: samba-3.3.0pre1~2641^2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b90062e33cbde7de4961414fd35a3a588760d002;p=thirdparty%2Fsamba.git 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 --- diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c index 2a2b547b5e5..bc49e24df1d 100644 --- a/source/rpc_client/cli_pipe.c +++ b/source/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; }