From: Michael Adam Date: Mon, 9 Sep 2013 23:53:14 +0000 (+0200) Subject: net: add "net idmap get" command X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=1be6c5787b9bfba37bc94b4a9517a357817ed2ac;p=mat%2Fsamba.git 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 --- 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,