diff options
author | Michael Adam <obnox@samba.org> | 2013-09-10 01:53:14 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-10-02 00:06:34 +0200 |
commit | 1be6c5787b9bfba37bc94b4a9517a357817ed2ac (patch) | |
tree | d787a66f2a5208be57494e99fa2719a4652c719d | |
parent | 050fb746b3ed615af9572d975ba3449ffe6657e1 (diff) | |
download | samba-1be6c5787b9bfba37bc94b4a9517a357817ed2ac.tar.gz samba-1be6c5787b9bfba37bc94b4a9517a357817ed2ac.tar.bz2 samba-1be6c5787b9bfba37bc94b4a9517a357817ed2ac.zip |
net: add "net idmap get" command
This has no subcommands yet and is added in preparation of adding some.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r-- | source3/utils/net_idmap.c | 17 |
1 files changed, 17 insertions, 0 deletions
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; @@ -877,6 +886,14 @@ int net_idmap(struct net_context *c, int argc, const char **argv) " 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, NET_TRANSPORT_LOCAL, |