From c6f4745c5670e8da77078e19f2d6a3a485e7adc6 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sat, 1 Dec 2012 00:59:44 +0100 Subject: s3-rpc_client: use netlogon_creds_aes_encrypt in interactive netlogon samlogon. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Stefan Metzmacher --- source3/rpc_client/cli_netlogon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 463741ac05..a0a94578be 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -207,7 +207,10 @@ NTSTATUS rpccli_netlogon_sam_logon(struct rpc_pipe_client *cli, nt_lm_owf_gen(password, ntpassword.hash, lmpassword.hash); - if (cli->dc->negotiate_flags & NETLOGON_NEG_ARCFOUR) { + if (cli->dc->negotiate_flags & NETLOGON_NEG_SUPPORTS_AES) { + netlogon_creds_aes_encrypt(cli->dc, lmpassword.hash, 16); + netlogon_creds_aes_encrypt(cli->dc, ntpassword.hash, 16); + } else if (cli->dc->negotiate_flags & NETLOGON_NEG_ARCFOUR) { netlogon_creds_arcfour_crypt(cli->dc, lmpassword.hash, 16); netlogon_creds_arcfour_crypt(cli->dc, ntpassword.hash, 16); } else { -- cgit