summaryrefslogtreecommitdiff
path: root/source3/rpcclient
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/rpcclient
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/rpcclient')
-rw-r--r--source3/rpcclient/cmd_netlogon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index 944eda86b7..639453b4d7 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -79,7 +79,8 @@ void cmd_netlogon_login_test(struct client_info *info)
DEBUG(5,("do_nt_login_test: username %s\n", nt_user_name));
- res = res ? trust_get_passwd(trust_passwd, smb_cli->domain, info->myhostname) : False;
+ res = res ? get_trust_account_password(smb_cli->domain,
+ trust_passwd, NULL) : False;
#if 0
/* check whether the user wants to change their machine password */
@@ -101,7 +102,8 @@ void cmd_netlogon_login_test(struct client_info *info)
if (res)
{
- global_machine_password_needs_changing = !set_trust_account_password(new_trust_passwd);
+ global_machine_password_needs_changing = !set_trust_account_password(smb_cli->domain,
+ new_trust_passwd);
}
memset(new_trust_passwd, 0, 16);