From a40a566504ec76d8ca4829c9d690d8a353330250 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Jun 2012 14:03:16 +0200 Subject: s3: Add --pw-nt-hash to popt_common_credentials Signed-off-by: Stefan Metzmacher --- source3/lib/popt_common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c index 3bcee1c8d7..94e551d53b 100644 --- a/source3/lib/popt_common.c +++ b/source3/lib/popt_common.c @@ -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 }; -- cgit