summaryrefslogtreecommitdiff
path: root/source3/utils/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r--source3/utils/net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 5a9b7d31ec..acd7bfb797 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -555,7 +555,9 @@ static int net_changesecretpw(int argc, const char **argv)
trust_pw = get_pass("Enter machine password: ", opt_stdin);
- if (!secrets_store_machine_password(trust_pw, lp_workgroup(), sec_channel_type)) {
+ if (!secrets_store_machine_password(trust_pw, global_myname(),
+ lp_workgroup(),
+ sec_channel_type)) {
d_fprintf(stderr, "Unable to write the machine account password in the secrets database");
return 1;
}