diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-02-12 18:15:06 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-02-12 18:15:06 -0500 |
commit | 5949124cc3ebba7a01d97131852c0ad2a8b17702 (patch) | |
tree | 4c99d00f6e1e165b3fd1eece0992ae8c3e1c1e5c /etc | |
parent | 8eaa727f5df9461093e025f9688ac3906434d76a (diff) | |
download | pfsense-5949124cc3ebba7a01d97131852c0ad2a8b17702.zip pfsense-5949124cc3ebba7a01d97131852c0ad2a8b17702.tar.gz |
Adding 802.1X Authentication support
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index f6fc5fc..09f123e 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1581,12 +1581,25 @@ wpa_group_rekey={$wlcfg['wpa']['wpa_group_rekey']} wpa_gmk_rekey={$wlcfg['wpa']['wpa_gmk_rekey']} wpa_strict_rekey={$wlcfg['wpa']['wpa_strict_rekey']} wpa_passphrase={$wlcfg['wpa']['passphrase']} -ieee8021x={$wlcfg['wpa']['ieee8021x']} #Enable the next lines for preauth when roaming. Interface = wired or wireless interface talking to the AP you want to roam from/to #rsn_preauth=1 #rsn_preauth_interfaces=eth0 EOD; + if($wlcfg['auth_server_addr'] && $wlcfg['auth_server_shared_secret']) { + $auth_server_port = "1812"; + if($wlcfg['auth_server_port']) + $auth_server_port = $wlcfg['auth_server_port']; + $wpa .= <<<EOD +ieee8021x=1 +auth_server_addr={$wlcfg['auth_server_addr']} +auth_server_port={$auth_server_port} +auth_server_shared_secret={$wlcfg['auth_server_shared_secret']} +EOD; + } else { + $wpa .= "ieee8021x={$wlcfg['wpa']['ieee8021x']}\n"; + } + $fd = fopen("{$g['varetc_path']}/hostapd_{$if}.conf", "w"); fwrite($fd, "{$wpa}"); fclose($fd); |