net: add the "net idmap set secret" subcommand as alias for "net idmap secret"
authorMichael Adam <obnox@samba.org>
Mon, 9 Sep 2013 15:13:47 +0000 (17:13 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 1 Oct 2013 08:49:21 +0000 (10:49 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/utils/net_idmap.c

index 93a68d26b7f3fcec7cfa4ebfd70ce4a008923d91..db7587aab4c48ff44d6549a33f9ccf719002f41d 100644 (file)
@@ -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 <DOMAIN> <secret>\n"
+                        _("net idmap set secret <DOMAIN> <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 <DOMAIN> <secret>\n"
+                          "  Set secret for specified domain")
+               },
                {NULL, NULL, 0, NULL, NULL}
        };