time_t lct;
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 \
account password for domain %s.\n", domain));
return False;
* Return the result of trying to write the new password
* 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(old_trust_passwd_hash, 0, 16);
return res;
DEBUG(5,("do_nt_login_test: username %s\n", nt_user_name));
- res = res ? get_trust_account_password(smb_cli->domain,
- trust_passwd, NULL) : False;
+ res = res ? secrets_fetch_trust_account_password(smb_cli->domain,
+ trust_passwd, NULL) : False;
#if 0
/* check whether the user wants to change their machine password */
/*
* 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;
}
* 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 \
machine %s in domain %s.\n", global_myname, global_myworkgroup ));
return True;