summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-03-09 10:29:20 +0100
committerStefan Metzmacher <metze@samba.org>2011-03-09 12:06:53 +0100
commit5a59dcc26ca5f218e76f7ed533472a98561c58ca (patch)
tree6437f15ecdfe4bea213bcf779867c71f0fd5f193 /source4
parentdec9d03e2585bdf4bfbb72ed8cd7c0f9c0026f76 (diff)
downloadsamba-5a59dcc26ca5f218e76f7ed533472a98561c58ca.tar.gz
samba-5a59dcc26ca5f218e76f7ed533472a98561c58ca.tar.bz2
samba-5a59dcc26ca5f218e76f7ed533472a98561c58ca.zip
s4:samba-tool: improve help messages for samba-tool password
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 9 12:06:53 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/samba_tool/password.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source4/samba_tool/password.c b/source4/samba_tool/password.c
index 96b845b69d..47d8f1f230 100644
--- a/source4/samba_tool/password.c
+++ b/source4/samba_tool/password.c
@@ -31,7 +31,7 @@
static int net_password_change_usage(struct net_context *ctx, int argc, const char **argv)
{
- d_printf("net_password_change_usage: TODO\n");
+ d_printf("samba-tool password change [options]\n");
return 0;
}
@@ -81,7 +81,7 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a
static int net_password_set_usage(struct net_context *ctx, int argc, const char **argv)
{
- d_printf("net_password_set_usage: TODO\n");
+ d_printf("samba-tool password set <username> [<password>] [options]\n");
return 0;
}
@@ -109,8 +109,8 @@ static int net_password_set(struct net_context *ctx, int argc, const char **argv
new_password = argv[1];
break;
default: /* too mayn args -> fail */
- DEBUG(0,("net_password_set: too many args [%d]\n",argc));
- return net_password_usage(ctx, argc, argv);
+ DEBUG(0,("samba-tool password set: too many args [%d]\n",argc));
+ return net_password_set_usage(ctx, argc, argv);
}
if ((p = strchr_m(tmp,'\\'))) {
@@ -167,5 +167,8 @@ int net_password(struct net_context *ctx, int argc, const char **argv)
int net_password_usage(struct net_context *ctx, int argc, const char **argv)
{
d_printf("samba-tool password <command> [options]\n");
+ d_printf("available commands:\n");
+ net_password_change_usage(ctx, argc, argv);
+ net_password_set_usage(ctx, argc, argv);
return 0;
}