summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-11 14:03:16 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-12 10:48:15 +0200
commita40a566504ec76d8ca4829c9d690d8a353330250 (patch)
treeff8e63816cd7814e403978d92f8b14c5194166bb
parent93e950caf8db42750869a0ec8a8d2bcb62a1d98d (diff)
downloadsamba-a40a566504ec76d8ca4829c9d690d8a353330250.tar.gz
samba-a40a566504ec76d8ca4829c9d690d8a353330250.tar.bz2
samba-a40a566504ec76d8ca4829c9d690d8a353330250.zip
s3: Add --pw-nt-hash to popt_common_credentials
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/lib/popt_common.c5
1 files changed, 5 insertions, 0 deletions
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
};