EAP-MSCHAPv2 peer: Add option to disable password retry query
authorJouni Malinen <j@w1.fi>
Sun, 1 Feb 2015 15:45:19 +0000 (17:45 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 1 Feb 2015 15:45:19 +0000 (17:45 +0200)
commit49fcc32e91ddf38259765a0218a4519977411a19
treecd38661a0774ffd4c908d57e6d36ff55e11c75e7
parentf4cd0f64543197980a27b2ecc7c3bacb920503ef
EAP-MSCHAPv2 peer: Add option to disable password retry query

wpa_supplicant used to request user to re-enter username/password if the
server indicated that EAP-MSCHAPv2 (e.g., in PEAP Phase 2)
authentication failed (E=691), but retry is allowed (R=1). This is a
reasonable default behavior, but there may be cases where it is more
convenient to close the authentication session immediately rather than
wait for user to do something.

Add a new "mschapv2_retry=0" option to the phase2 field to allow the
retry behavior to be disabled. This will make wpa_supplicant abort
authentication attempt on E=691 regardless of whether the server allows
retry.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_config.h
src/eap_peer/eap_mschapv2.c
wpa_supplicant/wpa_supplicant.conf