summaryrefslogtreecommitdiff
path: root/source4/utils/net/net_password.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-19 12:36:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:11 -0500
commit124e00068f2187e254f76cd82e913809870d799c (patch)
tree1a6a7ee1474a51dfc0d8dae52aed0efd39e6bcd8 /source4/utils/net/net_password.c
parent5c9c6b47412e93caab4c55086f679fb12fc9a9af (diff)
downloadsamba-124e00068f2187e254f76cd82e913809870d799c.tar.gz
samba-124e00068f2187e254f76cd82e913809870d799c.tar.bz2
samba-124e00068f2187e254f76cd82e913809870d799c.zip
r1915: use popt's cmdline_auth_info to fill the net_context
and print the user domain when prompting for a new password metze (This used to be commit aedb2e9e1c418a7ac3cc18299707ae9146e4047a)
Diffstat (limited to 'source4/utils/net/net_password.c')
-rw-r--r--source4/utils/net/net_password.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/utils/net/net_password.c b/source4/utils/net/net_password.c
index 90f26924a6..c9c549fcff 100644
--- a/source4/utils/net/net_password.c
+++ b/source4/utils/net/net_password.c
@@ -37,7 +37,8 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a
if (argc > 0 && argv[0]) {
new_password = argv[0];
} else {
- password_prompt = talloc_asprintf(ctx->mem_ctx, "Enter new password for %s:", ctx->user.account_name);
+ password_prompt = talloc_asprintf(ctx->mem_ctx, "Enter new password for account [%s\\%s]:",
+ ctx->user.domain_name, ctx->user.account_name);
new_password = getpass(password_prompt);
}