summaryrefslogtreecommitdiff
path: root/source3/libads/util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-13 16:13:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:36 -0500
commitaa6055debd078504f6a7ed861443b02672fc9067 (patch)
tree9c3fad25df2d7d6b993a214d1db85ced36561952 /source3/libads/util.c
parent0e702698f9a7cf0e528f073bae65371ed58e5496 (diff)
downloadsamba-aa6055debd078504f6a7ed861443b02672fc9067.tar.gz
samba-aa6055debd078504f6a7ed861443b02672fc9067.tar.bz2
samba-aa6055debd078504f6a7ed861443b02672fc9067.zip
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 used to be commit f94e5af72e282f70ca5454cdf3aed510b747eb93)
Diffstat (limited to 'source3/libads/util.c')
-rw-r--r--source3/libads/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libads/util.c b/source3/libads/util.c
index eb6dccb3af..669ed7d141 100644
--- a/source3/libads/util.c
+++ b/source3/libads/util.c
@@ -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;