From 68c4414fa5200914cba726f964dbe4f2e6407fff Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 9 Sep 2013 17:13:47 +0200 Subject: net: add the "net idmap set secret" subcommand as alias for "net idmap secret" Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/utils/net_idmap.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c index 93a68d26b7..db7587aab4 100644 --- a/source3/utils/net_idmap.c +++ b/source3/utils/net_idmap.c @@ -615,7 +615,7 @@ static int net_idmap_secret(struct net_context *c, int argc, const char **argv) if (argc != 2 || c->display_usage) { d_printf("%s\n%s", _("Usage:\n"), - _("net idmap secret \n" + _("net idmap set secret \n" " Set the secret for the specified domain\n" " DOMAIN\tDomain to set secret for.\n" " secret\tNew secret to set.\n")); @@ -677,6 +677,14 @@ static int net_idmap_set(struct net_context *c, int argc, const char **argv) N_("net idmap set mapping\n" " Not implemented yet") }, + { + "secret", + net_idmap_secret, + NET_TRANSPORT_LOCAL, + N_("Set secret for specified domain"), + N_("net idmap set secret \n" + " Set secret for specified domain") + }, {NULL, NULL, 0, NULL, NULL} }; -- cgit