summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-11-01 13:33:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:37 -0500
commit8b95bda9752383f298fad4775bd817971c37d756 (patch)
tree1c8a97a1903206dedbf0378fdb33072a7033eebd /source4
parent4e052d1fe472d8a60c76988c17d291c958ceb46d (diff)
downloadsamba-8b95bda9752383f298fad4775bd817971c37d756.tar.gz
samba-8b95bda9752383f298fad4775bd817971c37d756.tar.bz2
samba-8b95bda9752383f298fad4775bd817971c37d756.zip
r11440: Actually check the right thing for 'is this a machine account' (thanks metze).
Andrew Bartlett (This used to be commit 848831a1559d6569359bd6fb4993ccbef6ad86d8)
Diffstat (limited to 'source4')
-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;
}