summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-09 17:13:47 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:06:30 +0200
commit68c4414fa5200914cba726f964dbe4f2e6407fff (patch)
tree4a92d2f21b409afd9b7a90607027c2484a93c84d /source3
parenta064119cf295ff10a5c753405f5d9013751f0010 (diff)
downloadsamba-68c4414fa5200914cba726f964dbe4f2e6407fff.tar.gz
samba-68c4414fa5200914cba726f964dbe4f2e6407fff.tar.bz2
samba-68c4414fa5200914cba726f964dbe4f2e6407fff.zip
net: add the "net idmap set secret" subcommand as alias for "net idmap secret"
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-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}
};