Revision 5949124c
Added by Scott Ullrich over 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
1581 | 1581 |
wpa_gmk_rekey={$wlcfg['wpa']['wpa_gmk_rekey']} |
1582 | 1582 |
wpa_strict_rekey={$wlcfg['wpa']['wpa_strict_rekey']} |
1583 | 1583 |
wpa_passphrase={$wlcfg['wpa']['passphrase']} |
1584 |
ieee8021x={$wlcfg['wpa']['ieee8021x']} |
|
1585 | 1584 |
#Enable the next lines for preauth when roaming. Interface = wired or wireless interface talking to the AP you want to roam from/to |
1586 | 1585 |
#rsn_preauth=1 |
1587 | 1586 |
#rsn_preauth_interfaces=eth0 |
1588 | 1587 |
EOD; |
1589 | 1588 |
|
1589 |
if($wlcfg['auth_server_addr'] && $wlcfg['auth_server_shared_secret']) { |
|
1590 |
$auth_server_port = "1812"; |
|
1591 |
if($wlcfg['auth_server_port']) |
|
1592 |
$auth_server_port = $wlcfg['auth_server_port']; |
|
1593 |
$wpa .= <<<EOD |
|
1594 |
ieee8021x=1 |
|
1595 |
auth_server_addr={$wlcfg['auth_server_addr']} |
|
1596 |
auth_server_port={$auth_server_port} |
|
1597 |
auth_server_shared_secret={$wlcfg['auth_server_shared_secret']} |
|
1598 |
EOD; |
|
1599 |
} else { |
|
1600 |
$wpa .= "ieee8021x={$wlcfg['wpa']['ieee8021x']}\n"; |
|
1601 |
} |
|
1602 |
|
|
1590 | 1603 |
$fd = fopen("{$g['varetc_path']}/hostapd_{$if}.conf", "w"); |
1591 | 1604 |
fwrite($fd, "{$wpa}"); |
1592 | 1605 |
fclose($fd); |
Also available in: Unified diff
Adding 802.1X Authentication support