summaryrefslogtreecommitdiff
path: root/source3/utils/net_idmap.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-10 01:53:14 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:06:34 +0200
commit1be6c5787b9bfba37bc94b4a9517a357817ed2ac (patch)
treed787a66f2a5208be57494e99fa2719a4652c719d /source3/utils/net_idmap.c
parent050fb746b3ed615af9572d975ba3449ffe6657e1 (diff)
downloadsamba-1be6c5787b9bfba37bc94b4a9517a357817ed2ac.tar.gz
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>
Diffstat (limited to 'source3/utils/net_idmap.c')
-rw-r--r--source3/utils/net_idmap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c
index 80dc0424cef..a581e83d0d1 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,