]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpcclient make --pw-nt-hash option work
authorChristian Ambach <ambi@samba.org>
Wed, 11 May 2016 15:41:24 +0000 (17:41 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 31 May 2016 11:12:30 +0000 (13:12 +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>
(cherry picked from commit 4fe59879cc2a608194578e33e27e0dc1e2f0fc58)

source3/rpcclient/rpcclient.c

index a4edbe818999cbc91b57f4d0d8a7e8a82295ef55..74ae7082030f28085b4d91c372c234d1a09be42d 100644 (file)
@@ -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);