]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Add --pw-nt-hash to popt_common_credentials
authorVolker Lendecke <vl@samba.org>
Mon, 11 Jun 2012 12:03:16 +0000 (14:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 12 Jun 2012 08:48:15 +0000 (10:48 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/lib/popt_common.c

index 3bcee1c8d7f98754719a8248805329b0d97aff8c..94e551d53b8a2fd41c6979fd1871c51ab64702e3 100644 (file)
@@ -592,6 +592,9 @@ static void popt_common_credentials_callback(poptContext con,
        case 'C':
                set_cmdline_auth_info_use_ccache(auth_info, true);
                break;
+       case 'H':
+               set_cmdline_auth_info_use_pw_nt_hash(auth_info, true);
+               break;
        }
 }
 
@@ -615,5 +618,7 @@ struct poptOption popt_common_credentials[] = {
        {"encrypt", 'e', POPT_ARG_NONE, NULL, 'e', "Encrypt SMB transport (UNIX extended servers only)" },
        {"use-ccache", 'C', POPT_ARG_NONE, NULL, 'C',
         "Use the winbind ccache for authentication" },
+       {"pw-nt-hash", '\0', POPT_ARG_NONE, NULL, 'H',
+        "The supplied password is the NT hash" },
        POPT_TABLEEND
 };