summaryrefslogtreecommitdiff
path: root/source4/auth/credentials
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/credentials')
-rw-r--r--source4/auth/credentials/credentials_ntlm.c2
1 files changed, 1 insertions, 1 deletions
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;
}