1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

moved secrets fns into secrets.c

(This used to be commit f890bcf067)
This commit is contained in:
Andrew Tridgell 2000-06-03 06:22:19 +00:00
parent 843120837c
commit da44845a09
4 changed files with 6 additions and 6 deletions

View File

@ -636,7 +636,7 @@ BOOL change_trust_account_password( char *domain, char *remote_machine_list)
time_t lct; time_t lct;
BOOL res = False; BOOL res = False;
if(!get_trust_account_password(domain, old_trust_passwd_hash, &lct)) { if(!secrets_fetch_trust_account_password(domain, old_trust_passwd_hash, &lct)) {
DEBUG(0,("change_trust_account_password: unable to read the machine \ DEBUG(0,("change_trust_account_password: unable to read the machine \
account password for domain %s.\n", domain)); account password for domain %s.\n", domain));
return False; return False;
@ -693,7 +693,7 @@ domain %s.\n", timestring(False), domain));
* Return the result of trying to write the new password * Return the result of trying to write the new password
* back into the trust account file. * back into the trust account file.
*/ */
res = set_trust_account_password(domain, new_trust_passwd_hash); res = secrets_store_trust_account_password(domain, new_trust_passwd_hash);
memset(new_trust_passwd_hash, 0, 16); memset(new_trust_passwd_hash, 0, 16);
memset(old_trust_passwd_hash, 0, 16); memset(old_trust_passwd_hash, 0, 16);
return res; return res;

View File

@ -79,8 +79,8 @@ void cmd_netlogon_login_test(struct client_info *info)
DEBUG(5,("do_nt_login_test: username %s\n", nt_user_name)); DEBUG(5,("do_nt_login_test: username %s\n", nt_user_name));
res = res ? get_trust_account_password(smb_cli->domain, res = res ? secrets_fetch_trust_account_password(smb_cli->domain,
trust_passwd, NULL) : False; trust_passwd, NULL) : False;
#if 0 #if 0
/* check whether the user wants to change their machine password */ /* check whether the user wants to change their machine password */

View File

@ -1437,7 +1437,7 @@ BOOL domain_client_validate( char *user, char *domain,
/* /*
* Get the machine account password for our primary domain * Get the machine account password for our primary domain
*/ */
if (!get_trust_account_password(lp_workgroup(), trust_passwd, NULL)) if (!secrets_fetch_trust_account_password(lp_workgroup(), trust_passwd, NULL))
{ {
return False; return False;
} }

View File

@ -948,7 +948,7 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t
* First, open the machine password file with an exclusive lock. * First, open the machine password file with an exclusive lock.
*/ */
if(!get_trust_account_password(global_myworkgroup, trust_passwd_hash, &lct)) { if(!secrets_fetch_trust_account_password(global_myworkgroup, trust_passwd_hash, &lct)) {
DEBUG(0,("process: unable to read the machine account password for \ DEBUG(0,("process: unable to read the machine account password for \
machine %s in domain %s.\n", global_myname, global_myworkgroup )); machine %s in domain %s.\n", global_myname, global_myworkgroup ));
return True; return True;