summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-08-08 11:43:16 -0700
committerKarolin Seeger <kseeger@samba.org>2013-08-30 11:53:22 +0200
commitd9f3bd248940263e6a108cfcc61a3adeb3e7de6b (patch)
tree94f94db5f56ed4a485bdb239278908ba71a7fb12 /source3/utils
parent98426d11ffbb562ff259244d39447d4ca3083eb1 (diff)
downloadsamba-d9f3bd248940263e6a108cfcc61a3adeb3e7de6b.tar.gz
s3:smbcacls: Add -m<MAX PROTOCOL> option to smbcacls.
https://bugzilla.samba.org/show_bug.cgi?id=9514 Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit f6ce50a8aca9eb024af4eb5e3dd620fe5e04e913)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcacls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 39400c8bdd..3ee7034af6 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -1386,6 +1386,7 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
},
{ "test-args", 't', POPT_ARG_NONE, &test_args, 1, "Test arguments"},
{ "domain-sid", 0, POPT_ARG_STRING, &domain_sid, 0, "Domain SID for sddl", "SID"},
+ { "max-protocol", 'm', POPT_ARG_STRING, NULL, 'm', "Set the max protocol level", "LEVEL" },
POPT_COMMON_SAMBA
POPT_COMMON_CONNECTION
POPT_COMMON_CREDENTIALS
@@ -1456,6 +1457,9 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
owner_username = poptGetOptArg(pc);
change_mode = REQUEST_INHERIT;
break;
+ case 'm':
+ lp_set_cmdline("client max protocol", poptGetOptArg(pc));
+ break;
}
}