From 1be6c5787b9bfba37bc94b4a9517a357817ed2ac Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 10 Sep 2013 01:53:14 +0200 Subject: [PATCH] net: add "net idmap get" command This has no subcommands yet and is added in preparation of adding some. Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/utils/net_idmap.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c index 80dc0424ce..a581e83d0d 100644 --- a/source3/utils/net_idmap.c +++ b/source3/utils/net_idmap.c @@ -808,6 +808,15 @@ static int net_idmap_set(struct net_context *c, int argc, const char **argv) return net_run_function(c, argc, argv, "net idmap set", func); } +static int net_idmap_get(struct net_context *c, int argc, const char **argv) +{ + struct functable func[] = { + {NULL, NULL, 0, NULL, NULL} + }; + + return net_run_function(c, argc, argv, "net idmap get", func); +} + static int net_idmap_check(struct net_context *c, int argc, const char **argv) { const char* dbfile; @@ -876,6 +885,14 @@ int net_idmap(struct net_context *c, int argc, const char **argv) N_("net idmap restore\n" " Restore entries from stdin") }, + { + "get", + net_idmap_get, + NET_TRANSPORT_LOCAL, + N_("Read data from the ID mapping database"), + N_("net idmap get\n" + " Read data from the ID mapping database") + }, { "set", net_idmap_set, -- 2.34.1