summaryrefslogtreecommitdiff
path: root/source3/libads/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libads/util.c')
-rw-r--r--source3/libads/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libads/util.c b/source3/libads/util.c
index eb6dccb3af..669ed7d141 100644
--- a/source3/libads/util.c
+++ b/source3/libads/util.c
@@ -42,7 +42,9 @@ ADS_STATUS ads_change_trust_account_password(ADS_STRUCT *ads, char *host_princip
goto failed;
}
- if (!secrets_store_machine_password(new_password, lp_workgroup(), sec_channel_type)) {
+ if (!secrets_store_machine_password(new_password, global_myname(),
+ lp_workgroup(),
+ sec_channel_type)) {
DEBUG(1,("Failed to save machine password\n"));
ret = ADS_ERROR_SYSTEM(EACCES);
goto failed;