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:
committed by
Gerald (Jerry) Carter
parent
34ae610bd5
commit
f94e5af72e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user