summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2012-12-01 00:59:44 +0100
committerStefan Metzmacher <metze@samba.org>2012-12-09 19:39:07 +0100
commitc6f4745c5670e8da77078e19f2d6a3a485e7adc6 (patch)
tree191fb2a31dc91f7ad0ed5d39bf7c8da5359fb0a3
parent01e69703fb8c58ab1940bb560e34f6c3f10e0ae9 (diff)
downloadsamba-c6f4745c5670e8da77078e19f2d6a3a485e7adc6.tar.gz
samba-c6f4745c5670e8da77078e19f2d6a3a485e7adc6.tar.bz2
samba-c6f4745c5670e8da77078e19f2d6a3a485e7adc6.zip
s3-rpc_client: use netlogon_creds_aes_encrypt in interactive netlogon samlogon.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/rpc_client/cli_netlogon.c5
1 files changed, 4 insertions, 1 deletions
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 {