summaryrefslogtreecommitdiff
path: root/source3/utils/net_domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_domain.c')
-rw-r--r--source3/utils/net_domain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_domain.c b/source3/utils/net_domain.c
index 4f7bc8ddec..186cb9e8c0 100644
--- a/source3/utils/net_domain.c
+++ b/source3/utils/net_domain.c
@@ -146,7 +146,8 @@ int netdom_store_machine_account( const char *domain, DOM_SID *sid, const char *
return -1;
}
- if (!secrets_store_machine_password(pw, domain, SEC_CHAN_WKSTA)) {
+ if (!secrets_store_machine_password(pw, global_myname(), domain,
+ SEC_CHAN_WKSTA)) {
DEBUG(1,("Failed to save machine password\n"));
return -1;
}