summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2016-05-11 18:54:58 +0200
committerJeremy Allison <jra@samba.org>2016-05-12 17:36:09 +0200
commita55ac51f5f67c61bda1fee7067ad7d09a0c1efdf (patch)
tree11bdd953c2626e901370be7dce998bea70485db3 /source3/rpcclient
parentd0cdf02dc9733dae960021ff1ca07587d8155e58 (diff)
downloadsamba-a55ac51f5f67c61bda1fee7067ad7d09a0c1efdf.tar.gz
s3:rpcclient add -m option
Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 12 17:36:09 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index efca9530cf2..44d691bd614 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -913,6 +913,7 @@ out_free:
{"command", 'c', POPT_ARG_STRING, &cmdstr, 'c', "Execute semicolon separated cmds", "COMMANDS"},
{"dest-ip", 'I', POPT_ARG_STRING, &opt_ipaddr, 'I', "Specify destination IP address", "IP"},
{"port", 'p', POPT_ARG_INT, &opt_port, 'p', "Specify port number", "PORT"},
+ {"max-protocol", 'm', POPT_ARG_STRING, NULL, 'm', "Set the max protocol level", "LEVEL" },
POPT_COMMON_SAMBA
POPT_COMMON_CONNECTION
POPT_COMMON_CREDENTIALS
@@ -949,6 +950,10 @@ out_free:
while((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
+ case 'm':
+ lp_set_cmdline("client max protocol", poptGetOptArg(pc));
+ break;
+
case 'I':
if (!interpret_string_addr(&server_ss,
opt_ipaddr,