s3-net: Added net rpc conf import command to net rpc conf
authorVicentiu Ciorbaru <cvicentiu@gmail.com>
Wed, 3 Aug 2011 13:07:46 +0000 (16:07 +0300)
committerMichael Adam <obnox@samba.org>
Mon, 22 Aug 2011 11:59:28 +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 27eab10b0ae385b28a2490d6df2f008097f0156a..02cfc33490d8adab267f031fa28d07668a0cf109 100644 (file)
@@ -1915,6 +1915,12 @@ static int rpc_conf_list(struct net_context *c, int argc,
                rpc_conf_list_internal, argc, argv );
 }
 
+static int rpc_conf_import(struct net_context *c, int argc,
+                               const char **argv)
+{
+       d_printf("Function not yet implemented\n");
+       return 0;
+}
 static int rpc_conf_delshare(struct net_context *c, int argc,
                             const char **argv)
 {
@@ -1979,6 +1985,16 @@ int net_rpc_conf(struct net_context *c, int argc,
                           "like format.")
 
                },
+               {
+                       "import",
+                       rpc_conf_import,
+                       NET_TRANSPORT_RPC,
+                       N_("Import configuration from file in smb.conf "
+                          "format."),
+                       N_("net rpc conf import\n"
+                          "    Import configuration from file in smb.conf "
+                          "format.")
+               },
                {
                        "listshares",
                        rpc_conf_listshares,