s3:rpcclient make --pw-nt-hash option work
authorChristian Ambach <ambi@samba.org>
Wed, 11 May 2016 15:41:24 +0000 (17:41 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 12 May 2016 12:03:10 +0000 (14:03 +0200)
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>
source3/rpcclient/rpcclient.c

index c32fbc778950e8b34aef214952cd392407f636d5..efca9530cf249fc8be0eeef1e700294916893255 100644 (file)
@@ -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);