summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVicentiu Ciorbaru <cvicentiu@gmail.com>2011-07-13 21:17:08 +0300
committerMichael Adam <obnox@samba.org>2011-08-22 13:59:24 +0200
commit283da12a73ea3edc49a63f7375bc2c64ed36e2b1 (patch)
tree2db4883aa44fe7e4355c2d290f7cdb3fe83e8422 /source3/utils
parentb46655bd18a92560524ea8d1a6859ac56feea2a9 (diff)
downloadsamba-283da12a73ea3edc49a63f7375bc2c64ed36e2b1.tar.gz
samba-283da12a73ea3edc49a63f7375bc2c64ed36e2b1.tar.bz2
samba-283da12a73ea3edc49a63f7375bc2c64ed36e2b1.zip
s3-net: Added the command rpc conf to the net binary.
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>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_proto.h3
-rw-r--r--source3/utils/net_rpc.c8
-rw-r--r--source3/utils/net_rpc_conf.c46
3 files changed, 57 insertions, 0 deletions
diff --git a/source3/utils/net_proto.h b/source3/utils/net_proto.h
index d1393f1818..c25294b174 100644
--- a/source3/utils/net_proto.h
+++ b/source3/utils/net_proto.h
@@ -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_ */
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 6e71c56f83..04e6e687e3 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -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
index 0000000000..e27201904a
--- /dev/null
+++ b/source3/utils/net_rpc_conf.c
@@ -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;
+
+}