summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_idmap.c10
1 files changed, 9 insertions, 1 deletions
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 <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}
};