mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
Do not send Acct-Authentic in Accounting-On/Off
Acct-Authentic is used to indicate how the user was authenticated and as such, should not be sent in Accounting-On and Accounting-Off. Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
This commit is contained in:
parent
696544efed
commit
479f46c4c2
@ -76,17 +76,18 @@ static struct radius_msg * accounting_msg(struct hostapd_data *hapd,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hostapd_config_get_radius_attr(hapd->conf->radius_acct_req_attr,
|
|
||||||
RADIUS_ATTR_ACCT_AUTHENTIC) &&
|
|
||||||
!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_AUTHENTIC,
|
|
||||||
hapd->conf->ieee802_1x ?
|
|
||||||
RADIUS_ACCT_AUTHENTIC_RADIUS :
|
|
||||||
RADIUS_ACCT_AUTHENTIC_LOCAL)) {
|
|
||||||
wpa_printf(MSG_INFO, "Could not add Acct-Authentic");
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sta) {
|
if (sta) {
|
||||||
|
if (!hostapd_config_get_radius_attr(
|
||||||
|
hapd->conf->radius_acct_req_attr,
|
||||||
|
RADIUS_ATTR_ACCT_AUTHENTIC) &&
|
||||||
|
!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_AUTHENTIC,
|
||||||
|
hapd->conf->ieee802_1x ?
|
||||||
|
RADIUS_ACCT_AUTHENTIC_RADIUS :
|
||||||
|
RADIUS_ACCT_AUTHENTIC_LOCAL)) {
|
||||||
|
wpa_printf(MSG_INFO, "Could not add Acct-Authentic");
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
/* Use 802.1X identity if available */
|
/* Use 802.1X identity if available */
|
||||||
val = ieee802_1x_get_identity(sta->eapol_sm, &len);
|
val = ieee802_1x_get_identity(sta->eapol_sm, &len);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user