summaryrefslogtreecommitdiff
path: root/source4/utils/net/net_password.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/utils/net/net_password.c')
-rw-r--r--source4/utils/net/net_password.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/utils/net/net_password.c b/source4/utils/net/net_password.c
index a68c0b1c6a..08660fe2a0 100644
--- a/source4/utils/net/net_password.c
+++ b/source4/utils/net/net_password.c
@@ -57,9 +57,7 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a
if (!libnetctx) {
return -1;
}
- libnetctx->user.account_name= cli_credentials_get_username(ctx->credentials);
- libnetctx->user.domain_name = cli_credentials_get_domain(ctx->credentials);
- libnetctx->user.password = cli_credentials_get_password(ctx->credentials);
+ libnetctx->credentials = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_CHANGE_PASSWORD_GENERIC;
@@ -134,9 +132,7 @@ static int net_password_set(struct net_context *ctx, int argc, const char **argv
if (!libnetctx) {
return -1;
}
- libnetctx->user.account_name= cli_credentials_get_username(ctx->credentials);
- libnetctx->user.domain_name = cli_credentials_get_domain(ctx->credentials);
- libnetctx->user.password = cli_credentials_get_password(ctx->credentials);
+ libnetctx->credentials = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_SET_PASSWORD_GENERIC;