From a064119cf295ff10a5c753405f5d9013751f0010 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 6 Sep 2013 18:01:20 +0200 Subject: [PATCH] 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 Reviewed-by: Volker Lendecke --- source3/utils/net_idmap.c | 24 +++++++++++++++++++++--- 1 file 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", -- 2.34.1