From 93e950caf8db42750869a0ec8a8d2bcb62a1d98d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Jun 2012 14:02:03 +0200 Subject: s3: Add cli_state->pw_nt_hash Signed-off-by: Stefan Metzmacher --- source3/libsmb/cliconnect.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/libsmb/cliconnect.c') diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index f46ce06e4c3..acc3a21c744 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1648,7 +1648,11 @@ static struct tevent_req *cli_session_setup_ntlmssp_send( if (!NT_STATUS_IS_OK(status)) { goto fail; } - status = ntlmssp_set_password(state->ntlmssp_state, pass); + if (cli->pw_nt_hash) { + status = ntlmssp_set_password_hash(state->ntlmssp_state, pass); + } else { + status = ntlmssp_set_password(state->ntlmssp_state, pass); + } if (!NT_STATUS_IS_OK(status)) { goto fail; } -- cgit v1.2.1