From 8b95bda9752383f298fad4775bd817971c37d756 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 1 Nov 2005 13:33:05 +0000 Subject: r11440: Actually check the right thing for 'is this a machine account' (thanks metze). Andrew Bartlett (This used to be commit 848831a1559d6569359bd6fb4993ccbef6ad86d8) --- source4/auth/credentials/credentials_ntlm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/auth/credentials/credentials_ntlm.c b/source4/auth/credentials/credentials_ntlm.c index 6a8b284e78..9fd4c09473 100644 --- a/source4/auth/credentials/credentials_ntlm.c +++ b/source4/auth/credentials/credentials_ntlm.c @@ -64,7 +64,7 @@ NTSTATUS cli_credentials_get_ntlm_response(struct cli_credentials *cred, TALLOC_ } /* Likewise if we are a machine account (avoid protocol downgrade attacks) */ - if (cred->principal_obtained > cred->username_obtained) { + if (cred->machine_account) { *flags = *flags & ~CLI_CRED_LANMAN_AUTH; } -- cgit