diff --git a/docs-xml/manpages/rpcclient.1.xml b/docs-xml/manpages/rpcclient.1.xml
index 2ce1443c7bf..fcdd0c668d5 100644
--- a/docs-xml/manpages/rpcclient.1.xml
+++ b/docs-xml/manpages/rpcclient.1.xml
@@ -24,7 +24,6 @@
-c <command string>
-d debuglevel
-l logdir
- -m maxprotocol
-N
-s <smb config file>
-U username[%password]
@@ -86,19 +85,6 @@
above.
-
- -m|--max-protocol protocol
- This allows the user to select the
- highest SMB protocol level that rpcclient will use to
- connect to the server. By default this is set to
- NT1, which is the highest available SMB1 protocol.
- To connect using SMB2 or SMB3 protocol, use the
- strings SMB2 or SMB3 respectively. Note that to connect
- to a Windows 2012 server with encrypted transport selecting
- a max-protocol of SMB3 is required.
-
-
-
-p|--port port
This number is the TCP port number that will be used
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 44d691bd614..efca9530cf2 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -913,7 +913,6 @@ 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
@@ -950,10 +949,6 @@ 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,