path: root/hostapd/hostapd.c
diff options
authorJouni Malinen <j@w1.fi>2008-12-26 18:22:12 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-26 18:22:12 (GMT)
commit65d50f0ac63b6c7831cc0b04bbd476dd48b0991b (patch)
treeab84a109e64d312e5363fb4b8a3c4c8ca1c63a44 /hostapd/hostapd.c
parentd9f56262938e155cd1f13da485e83ef6a23751f5 (diff)
Add RADIUS server support for identity selection hint (RFC 4284)
Previously, only the delivery option 1 from RFC 4284 (EAP-Request/Identity from the AP) was supported. Now option 3 (subsequent EAP-Request/Identity from RADIUS server) can also be used when hostapd is used as a RADIUS server. The eap_user file will need to have a Phase 1 user entry pointing to Identity method in order for this to happen (e.g., "* Identity" in the end of the file). The identity hint is configured in the same was as for AP/Authenticator case (eap_message in hostapd.conf).
Diffstat (limited to 'hostapd/hostapd.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index 225ad3a..6a0c131 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -1221,6 +1221,8 @@ static int hostapd_setup_radius_srv(struct hostapd_data *hapd,
srv.wps = hapd->wps;
srv.ipv6 = conf->radius_server_ipv6;
srv.get_eap_user = hostapd_radius_get_eap_user;
+ srv.eap_req_id_text = conf->eap_req_id_text;
+ srv.eap_req_id_text_len = conf->eap_req_id_text_len;
hapd->radius_srv = radius_server_init(&srv);
if (hapd->radius_srv == NULL) {