1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00

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 commit is contained in:
Volker Lendecke
2007-03-13 16:13:24 +00:00
committed by Gerald (Jerry) Carter
parent 34ae610bd5
commit f94e5af72e
7 changed files with 36 additions and 6 deletions

View File

@@ -42,7 +42,9 @@ ADS_STATUS ads_change_trust_account_password(ADS_STRUCT *ads, char *host_princip
goto failed;
}
if (!secrets_store_machine_password(new_password, lp_workgroup(), sec_channel_type)) {
if (!secrets_store_machine_password(new_password, global_myname(),
lp_workgroup(),
sec_channel_type)) {
DEBUG(1,("Failed to save machine password\n"));
ret = ADS_ERROR_SYSTEM(EACCES);
goto failed;