diff options
author | Günther Deschner <gd@samba.org> | 2012-12-05 19:52:54 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-12-09 19:39:08 +0100 |
commit | a52115ce67c2e5bd1e478d7601483fd2490aea31 (patch) | |
tree | 75caa5d3696f7623ebdac0bf7ae369b636923031 /source3/rpc_server/netlogon | |
parent | 6aec126566d01dd9ddbbd5488f73b61729094a52 (diff) | |
download | samba-a52115ce67c2e5bd1e478d7601483fd2490aea31.tar.gz samba-a52115ce67c2e5bd1e478d7601483fd2490aea31.tar.bz2 samba-a52115ce67c2e5bd1e478d7601483fd2490aea31.zip |
s3-rpc_server: we need to encrypt OWFs using DES in _netr_ServerGetTrustInfo().
Sumit, please check.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_server/netlogon')
-rw-r--r-- | source3/rpc_server/netlogon/srv_netlog_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c index aef97e4f9a..16542f8306 100644 --- a/source3/rpc_server/netlogon/srv_netlog_nt.c +++ b/source3/rpc_server/netlogon/srv_netlog_nt.c @@ -2421,7 +2421,7 @@ static NTSTATUS get_password_from_trustAuth(TALLOC_CTX *mem_ctx, return NT_STATUS_UNSUCCESSFUL; } - netlogon_creds_arcfour_crypt(creds, current_pw_enc->hash, sizeof(current_pw_enc->hash)); + netlogon_creds_des_encrypt(creds, current_pw_enc); if (trustAuth.previous.count != 0 && trustAuth.previous.array[0].AuthType == TRUST_AUTH_TYPE_CLEAR) { @@ -2432,7 +2432,7 @@ static NTSTATUS get_password_from_trustAuth(TALLOC_CTX *mem_ctx, mdfour(previous_pw_enc->hash, NULL, 0); } - netlogon_creds_arcfour_crypt(creds, previous_pw_enc->hash, sizeof(previous_pw_enc->hash)); + netlogon_creds_des_encrypt(creds, previous_pw_enc); return NT_STATUS_OK; } |