s3-net: Added the command rpc conf to the net binary.
authorVicentiu Ciorbaru <cvicentiu@gmail.com>
Wed, 13 Jul 2011 18:17:08 +0000 (21:17 +0300)
committerMichael Adam <obnox@samba.org>
Mon, 22 Aug 2011 11:59:24 +0000 (13:59 +0200)
The net binary now has an extra item linked to it, the
net_rpc_conf.c module.

Signed-off-by: Michael Adam <obnox@samba.org>
source3/Makefile.in
source3/utils/net_proto.h
source3/utils/net_rpc.c
source3/utils/net_rpc_conf.c [new file with mode: 0644]
source3/wscript_build

index 39e62cce39960065e6b00458ee3c8288fd73933c..c6335106a45806d9d593bf698f066c0b72a19310 100644 (file)
@@ -1197,6 +1197,7 @@ NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
           utils/net_eventlog.o \
           utils/net_printing.o \
           utils/net_rpc_trust.o \
+          utils/net_rpc_conf.o\
           $(LIBNDR_NTPRINTING_OBJ) \
           $(LIBNDR_PREG_OBJ) \
           $(LIBCLI_SPOOLSS_OBJ) \
index d1393f18185d70d42f6c1205542b5dfde37f5732..c25294b1741bb51a513974c0a7bd7a394b565125 100644 (file)
@@ -469,4 +469,7 @@ int net_g_lock(struct net_context *c, int argc, const char **argv);
 /* The following definitions come from utils/net_rpc_trust.c  */
 int net_rpc_trust(struct net_context *c, int argc, const char **argv);
 
+/* The following definitions come from utils/net_rpc_conf.c */
+int net_rpc_conf(struct net_context *c, int argc, const char **argv);
+
 #endif /*  _NET_PROTO_H_  */
index 6e71c56f83380f5b337d79ddb7a42df5decd8c29..04e6e687e3e4b2bbc91abcc36bf232f60295eb99 100644 (file)
@@ -8001,6 +8001,14 @@ int net_rpc(struct net_context *c, int argc, const char **argv)
                        N_("net rpc trust\n"
                           "    Manage trusts")
                },
+               {
+                       "conf",
+                       net_rpc_conf,
+                       NET_TRANSPORT_RPC,
+                       N_("Configure a remote samba server"),
+                       N_("net rpc conf\n"
+                          "    Configure a remote samba server")
+               },
                {NULL, NULL, 0, NULL, NULL}
        };
 
diff --git a/source3/utils/net_rpc_conf.c b/source3/utils/net_rpc_conf.c
new file mode 100644 (file)
index 0000000..e272019
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ *  Samba Unix/Linux SMB client library
+ *  Distributed SMB/CIFS Server Management Utility
+ *  Local configuration interface
+ *  Copyright (C) Vicentiu Ciorbaru 2011
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+/*
+ * This is an interface to Samba's configuration.
+ *
+ * This tool supports local as well as remote interaction via rpc
+ * with the configuration stored in the registry.
+ */
+
+
+#include "includes.h"
+#include "utils/net.h"
+#include "rpc_client/cli_pipe.h"
+#include "../librpc/gen_ndr/ndr_samr_c.h"
+#include "rpc_client/init_samr.h"
+#include "../librpc/gen_ndr/ndr_winreg_c.h"
+#include "../libcli/registry/util_reg.h"
+#include "rpc_client/cli_winreg.h"
+#include "../lib/smbconf/smbconf.h"
+
+
+/* function calls */
+int net_rpc_conf(struct net_context *c, int argc,
+                const char **argv)
+{
+       return 0;
+
+}
index 46e9a853879943199450e85a88b4df6ac3bb84dd..cdf1958f04f548b29e7e49e20545699f6c3ea744 100755 (executable)
@@ -552,6 +552,7 @@ NET_SRC1 = '''utils/net.c utils/net_ads.c utils/net_help.c
               utils/net_eventlog.c
               utils/net_printing.c
               utils/net_rpc_trust.c
+             utils/net_rpc_conf.c
               registry/reg_parse.c registry/reg_format.c
               registry/reg_parse_internal.c registry/reg_import.c
               lib/cbuf.c lib/srprs.c'''