summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2016-05-11 17:41:24 +0200
committerJeremy Allison <jra@samba.org>2016-05-12 14:03:10 +0200
commit4fe59879cc2a608194578e33e27e0dc1e2f0fc58 (patch)
tree118b17331146905294b72fc5b5018531d43a441c /source3/rpcclient
parent86dbdce3780ab4e3fda7501974810701f3816d48 (diff)
downloadsamba-4fe59879cc2a608194578e33e27e0dc1e2f0fc58.tar.gz
s3:rpcclient make --pw-nt-hash option work
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10796 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index c32fbc77895..efca9530cf2 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -1084,6 +1084,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);