RADIUS DAS: Support Chargeable-User-Identity with Disconnect-Request
Chargeable-User-Identity can now be used in Disconnect-Request to identify the station to be disconnected. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e58b5ffed7
commit
302fc0a3c7
3 changed files with 19 additions and 0 deletions
|
@ -541,6 +541,17 @@ static struct sta_info * hostapd_das_find_sta(struct hostapd_data *hapd,
|
|||
}
|
||||
}
|
||||
|
||||
if (sta == NULL && attr->cui) {
|
||||
for (sta = hapd->sta_list; sta; sta = sta->next) {
|
||||
struct wpabuf *cui;
|
||||
cui = ieee802_1x_get_radius_cui(sta->eapol_sm);
|
||||
if (cui && wpabuf_len(cui) == attr->cui_len &&
|
||||
os_memcmp(wpabuf_head(cui), attr->cui,
|
||||
attr->cui_len) == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (sta == NULL && attr->user_name) {
|
||||
for (sta = hapd->sta_list; sta; sta = sta->next) {
|
||||
u8 *identity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue