diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-05 09:00:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 09:00:13 +0200 |
commit | 262dd9a972260dfab340367cbb40ba064bb2a1aa (patch) | |
tree | b9f834937d27b15617177c7058011de31206c37c /data/templates/wifi/wpa_supplicant.conf.j2 | |
parent | 0e70cea1daf2abf9c9074bb5da4f3de5c1aca833 (diff) | |
parent | 0c9499c5b3f7cc053c1f29ecf28d679c1a3156e2 (diff) | |
download | vyos-1x-262dd9a972260dfab340367cbb40ba064bb2a1aa.tar.gz vyos-1x-262dd9a972260dfab340367cbb40ba064bb2a1aa.zip |
Merge pull request #3711 from part1cleth1ef/current
T6496: Added support for WPA-Enterprise client-mode
Diffstat (limited to 'data/templates/wifi/wpa_supplicant.conf.j2')
-rw-r--r-- | data/templates/wifi/wpa_supplicant.conf.j2 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/data/templates/wifi/wpa_supplicant.conf.j2 b/data/templates/wifi/wpa_supplicant.conf.j2 index ac857a04a..04088e1ad 100644 --- a/data/templates/wifi/wpa_supplicant.conf.j2 +++ b/data/templates/wifi/wpa_supplicant.conf.j2 @@ -61,6 +61,8 @@ network={ # If not set, this defaults to: WPA-PSK WPA-EAP {% if security.wpa.mode is vyos_defined('wpa3') %} key_mgmt=SAE +{% elif security.wpa.username is vyos_defined %} + key_mgmt=WPA-EAP WPA-EAP-SHA256 {% else %} key_mgmt=WPA-PSK WPA-PSK-SHA256 {% endif %} @@ -76,8 +78,18 @@ network={ # from ASCII passphrase. This process uses lot of CPU and wpa_supplicant # startup and reconfiguration time can be optimized by generating the PSK only # only when the passphrase or SSID has actually changed. +{% if security.wpa.username is vyos_defined %} + identity="{{ security.wpa.username }}" + password="{{ security.wpa.passphrase }}" + phase2="auth=MSCHAPV2" + eap=PEAP +{% elif security.wpa.username is not vyos_defined %} psk="{{ security.wpa.passphrase }}" -{% else %} +{% else %} key_mgmt=NONE +{% endif %} +{% endif %} +{% if bssid is vyos_defined %} + bssid={{ bssid }} {% endif %} } |