summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_netlogon.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-08 10:42:21 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-08 10:42:21 +0000
commit2958dfcdf87d5169fe1152806be6ad03acb04d88 (patch)
tree3eb5efae1375bb736cd7b73655ea7a1cb5503ad8 /source3/rpc_client/cli_netlogon.c
parent722a4bfa9feed9f58d9b032d951ee62c81611086 (diff)
downloadsamba-2958dfcdf87d5169fe1152806be6ad03acb04d88.tar.gz
samba-2958dfcdf87d5169fe1152806be6ad03acb04d88.tar.bz2
samba-2958dfcdf87d5169fe1152806be6ad03acb04d88.zip
added secrets.tdb and changed storage of trust account password to use
it (This used to be commit 88ad00b82acc4636ab57dfe710af08ea85b82ff1)
Diffstat (limited to 'source3/rpc_client/cli_netlogon.c')
-rw-r--r--source3/rpc_client/cli_netlogon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index dab4aa7ad5..ce4468d112 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -629,7 +629,7 @@ BOOL change_trust_account_password( char *domain, char *remote_machine_list)
time_t lct;
BOOL res = False;
- if(!get_trust_account_password( old_trust_passwd_hash, &lct)) {
+ if(!get_trust_account_password(domain, old_trust_passwd_hash, &lct)) {
DEBUG(0,("change_trust_account_password: unable to read the machine \
account password for domain %s.\n", domain));
return False;
@@ -686,7 +686,7 @@ domain %s.\n", timestring(False), domain));
* Return the result of trying to write the new password
* back into the trust account file.
*/
- res = set_trust_account_password(new_trust_passwd_hash);
+ res = set_trust_account_password(domain, new_trust_passwd_hash);
memset(new_trust_passwd_hash, 0, 16);
memset(old_trust_passwd_hash, 0, 16);
return res;