summaryrefslogtreecommitdiff
path: root/source4/utils/net
diff options
context:
space:
mode:
Diffstat (limited to 'source4/utils/net')
-rw-r--r--source4/utils/net/net_password.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/utils/net/net_password.c b/source4/utils/net/net_password.c
index c9c549fcff..9daa3f401f 100644
--- a/source4/utils/net/net_password.c
+++ b/source4/utils/net/net_password.c
@@ -46,6 +46,9 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a
if (!libnetctx) {
return -1;
}
+ libnetctx->user.account_name = ctx->user.account_name;
+ libnetctx->user.domain_name = ctx->user.domain_name;
+ libnetctx->user.password = ctx->user.password;
/* prepare password change */
r.generic.level = LIBNET_CHANGE_PASSWORD_GENERIC;