From aa6055debd078504f6a7ed861443b02672fc9067 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 13 Mar 2007 16:13:24 +0000 Subject: r21823: Let secrets_store_machine_password() also store the account name. Not used yet, the next step will be a secrets_fetch_machine_account() function that also pulls the account name to be used in the appropriate places. Volker (This used to be commit f94e5af72e282f70ca5454cdf3aed510b747eb93) --- source3/utils/net_domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/utils/net_domain.c') 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; } -- cgit