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:
parent
767c5ca7be
commit
848831a155
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user