summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-06 18:01:20 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:06:29 +0200
commita064119cf295ff10a5c753405f5d9013751f0010 (patch)
treeee12d49e4b74062ad1019d8ebb23d3d8cffac5ac /source3
parent601b67bc5774dbdbdec34862436d18c1ffb65f1c (diff)
downloadsamba-a064119cf295ff10a5c753405f5d9013751f0010.tar.gz
samba-a064119cf295ff10a5c753405f5d9013751f0010.tar.bz2
samba-a064119cf295ff10a5c753405f5d9013751f0010.zip
net: move the "net idmap set" functionality to subcommand "net idmap set mapping"
This is in preparation of adding more "net idmap set" subcommands for the autorid backend. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_idmap.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c
index 6f2efec87b..93a68d26b7 100644
--- a/source3/utils/net_idmap.c
+++ b/source3/utils/net_idmap.c
@@ -570,7 +570,8 @@ done:
return ret;
}
-static int net_idmap_set(struct net_context *c, int argc, const char **argv)
+static int net_idmap_set_mapping(struct net_context *c,
+ int argc, const char **argv)
{
d_printf("%s\n", _("Not implemented yet"));
return -1;
@@ -665,6 +666,23 @@ static int net_idmap_secret(struct net_context *c, int argc, const char **argv)
return 0;
}
+static int net_idmap_set(struct net_context *c, int argc, const char **argv)
+{
+ struct functable func[] = {
+ {
+ "mapping",
+ net_idmap_set_mapping,
+ NET_TRANSPORT_LOCAL,
+ N_("Not implemented yet"),
+ N_("net idmap set mapping\n"
+ " Not implemented yet")
+ },
+ {NULL, NULL, 0, NULL, NULL}
+ };
+
+ return net_run_function(c, argc, argv, "net idmap set", func);
+}
+
static int net_idmap_check(struct net_context *c, int argc, const char **argv)
{
const char* dbfile;
@@ -737,9 +755,9 @@ int net_idmap(struct net_context *c, int argc, const char **argv)
"set",
net_idmap_set,
NET_TRANSPORT_LOCAL,
- N_("Not implemented yet"),
+ N_("Write data to the ID mapping database"),
N_("net idmap set\n"
- " Not implemented yet")
+ " Write data to the ID mapping database")
},
{
"delete",