1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r11440: Actually check the right thing for 'is this a machine account' (thanks metze).

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2005-11-01 13:33:05 +00:00 committed by Gerald (Jerry) Carter
parent 767c5ca7be
commit 848831a155

View File

@ -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;
}