s3:smbcacls: Add -m<MAX PROTOCOL> option to smbcacls.
authorJeremy Allison <jra@samba.org>
Thu, 8 Aug 2013 18:43:16 +0000 (11:43 -0700)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2013 07:07:05 +0000 (09:07 +0200)
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>
source3/utils/smbcacls.c

index d3d60bc8eaf21a60038f4ee13c74e55a7554a618..20ce73ddc718a231ceda14441ed35e7c699f3334 100644 (file)
@@ -1385,6 +1385,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
@@ -1455,6 +1456,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;
                }
        }