aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-03-29 17:31:56 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-29 17:31:56 (GMT)
commit8943cc998a395734aa2ab7afeafe6fe3ec97b348 (patch)
tree51150512600ab878e06e234f2fa5533315d025ce /hostapd
parent81699e2e6ef58c51c95c5a50d4910994301e2268 (diff)
downloadhostap-8943cc998a395734aa2ab7afeafe6fe3ec97b348.zip
hostap-8943cc998a395734aa2ab7afeafe6fe3ec97b348.tar.gz
hostap-8943cc998a395734aa2ab7afeafe6fe3ec97b348.tar.bz2
RADIUS server: Add support for MAC ACL
"user" MACACL "password" style lines in the eap_user file can now be used to configured user entries for RADIUS-based MAC ACL. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index e1f8b20..8ce62aa 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -366,6 +366,10 @@ static int hostapd_config_read_eap_user(const char *fname,
EAP_TTLS_AUTH_MSCHAPV2;
goto skip_eap;
}
+ if (os_strcmp(start, "MACACL") == 0) {
+ user->macacl = 1;
+ goto skip_eap;
+ }
wpa_printf(MSG_ERROR, "Unsupported EAP type "
"'%s' on line %d in '%s'",
start, line, fname);
@@ -380,7 +384,7 @@ static int hostapd_config_read_eap_user(const char *fname,
break;
start = pos3;
}
- if (num_methods == 0 && user->ttls_auth == 0) {
+ if (num_methods == 0 && user->ttls_auth == 0 && !user->macacl) {
wpa_printf(MSG_ERROR, "No EAP types configured on "
"line %d in '%s'", line, fname);
goto failed;