From: Christian Ambach Date: Wed, 11 May 2016 15:41:24 +0000 (+0200) Subject: s3:rpcclient make --pw-nt-hash option work X-Git-Tag: samba-4.3.10~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e469ad278b0a5e9466e128c546680a9ccbb57361;p=thirdparty%2Fsamba.git s3:rpcclient make --pw-nt-hash option work Bug: https://bugzilla.samba.org/show_bug.cgi?id=10796 Signed-off-by: Christian Ambach Reviewed-by: Jeremy Allison (cherry picked from commit 4fe59879cc2a608194578e33e27e0dc1e2f0fc58) --- diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index a4edbe81899..74ae7082030 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -1095,6 +1095,9 @@ out_free: if (get_cmdline_auth_info_use_ccache(rpcclient_auth_info)) { flags |= CLI_FULL_CONNECTION_USE_CCACHE; } + if (get_cmdline_auth_info_use_pw_nt_hash(rpcclient_auth_info)) { + flags |= CLI_FULL_CONNECTION_USE_NT_HASH; + } user = talloc_strdup(frame, get_cmdline_auth_info_username(rpcclient_auth_info)); SMB_ASSERT(user != NULL);