summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/trusts_util.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-10-08 00:34:05 +0200
committerGünther Deschner <gd@samba.org>2009-10-13 00:07:45 +0200
commit4a1b50afd567313cc25d5bbc14e01e170aa62a00 (patch)
tree655537d2d31a0f77e9b3284f25ea85d4cab2a8d8 /source3/libsmb/trusts_util.c
parentfaad888e1a3bfd339df92d8d749e95034f64c80a (diff)
downloadsamba-4a1b50afd567313cc25d5bbc14e01e170aa62a00.tar.gz
samba-4a1b50afd567313cc25d5bbc14e01e170aa62a00.tar.xz
samba-4a1b50afd567313cc25d5bbc14e01e170aa62a00.zip
s3-netlogon: pass down account name to remote password set functions.
Guenther
Diffstat (limited to 'source3/libsmb/trusts_util.c')
-rw-r--r--source3/libsmb/trusts_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c
index adf15258122..e2018141632 100644
--- a/source3/libsmb/trusts_util.c
+++ b/source3/libsmb/trusts_util.c
@@ -29,6 +29,7 @@
NTSTATUS trust_pw_change_and_store_it(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
const char *domain,
+ const char *account_name,
unsigned char orig_trust_passwd_hash[16],
uint32 sec_channel_type)
{
@@ -47,6 +48,7 @@ NTSTATUS trust_pw_change_and_store_it(struct rpc_pipe_client *cli, TALLOC_CTX *m
E_md4hash(new_trust_passwd, new_trust_passwd_hash);
nt_status = rpccli_netlogon_set_trust_password(cli, mem_ctx,
+ account_name,
orig_trust_passwd_hash,
new_trust_passwd,
new_trust_passwd_hash,
@@ -88,6 +90,7 @@ NTSTATUS trust_pw_find_change_and_store_it(struct rpc_pipe_client *cli,
}
return trust_pw_change_and_store_it(cli, mem_ctx, domain,
+ global_myname(),
old_trust_passwd_hash,
sec_channel_type);
}