s3-net: Added net rpc conf drop command to net rpc conf
authorVicentiu Ciorbaru <cvicentiu@gmail.com>
Wed, 13 Jul 2011 21:01:15 +0000 (00:01 +0300)
committerMichael Adam <obnox@samba.org>
Mon, 22 Aug 2011 11:59:25 +0000 (13:59 +0200)
The function only appears in the commands list usage of net rpc conf.

Signed-off-by: Michael Adam <obnox@samba.org>
source3/utils/net_rpc_conf.c

index 7a9d2c932b5b9a90a678d31fe51d6dc483286d7f..3c9f3cf10cd4dbef7be5573133100f8601d7b7fa 100644 (file)
@@ -651,6 +651,13 @@ error:
        return status;
 }
 
+static int rpc_conf_drop(struct net_context *c, int argc,
+                               const char **argv)
+{
+       d_printf("Function not implemented yet\n");
+       return 0;
+}
+
 static int rpc_conf_showshare(struct net_context *c, int argc,
                                const char **argv)
 {
@@ -696,6 +703,15 @@ int net_rpc_conf(struct net_context *c, int argc,
                        N_("net rpc conf list\n"
                           "    List the remote share names.")
 
+               },
+               {
+                       "drop",
+                       rpc_conf_drop,
+                       NET_TRANSPORT_RPC,
+                       N_("Delete the complete remote configuration."),
+                       N_("net rpc conf drop\n"
+                          "    Delete the complete remote configuration.")
+
                },
                {
                        "showshare",