diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-08-27 13:16:15 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-09-01 09:26:10 +0200 |
commit | fe95c192ff07f930c7dddff8dbf1efb6bdbd96fe (patch) | |
tree | 33ba204710d132931e4ccc6734e6e15982854500 /source3/rpc_client | |
parent | c7449bd0ae1f60d18816e8a34be7de4fe4394fd5 (diff) | |
download | samba-fe95c192ff07f930c7dddff8dbf1efb6bdbd96fe.tar.gz |
s3:netlogon: replace cred_hash3 by des_crypt112_16
This makes sure we don't truncate the session key to 8 bytes
Fixes bug #6664
metze
(cherry picked from commit 2467671ba55c5ac834a8aa7ae8ad736958baab1d)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 5f115e537bb..4d7347f36d9 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -601,9 +601,9 @@ NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli, struct samr_Password new_password; - cred_hash3(new_password.hash, - new_trust_passwd_hash, - cli->dc->sess_key, 1); + des_crypt112_16(new_password.hash, + new_trust_passwd_hash, + cli->dc->sess_key, 1); result = rpccli_netr_ServerPasswordSet(cli, mem_ctx, cli->dc->remote_machine, |