Duo S to connect to WPA-EAP WIFI network

想用 Duo S 连接到一个 WPA-EAP 的 wifi 网络,但是得到了如下错误信息:

[root@milkv-duo]~# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Line 9: unknown network field 'identity'.
Line 10: unknown network field 'password'.
Line 11: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.

配置文件内容如下:

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
update_config=1

network={
  ssid="wifi ssid"
  key_mgmt=WPA-EAP
  identity="username"
  password="password"
}

在网上搜寻了一下,发现有人提到 OpenWRT 有类似的问题,是因为 wpa 客户端不兼容 EAP 的原因。不知道 Duo S 是不是类似的原因,或者有没有什么办法可以自己编译一个 wpad-openssl 客户端。

@zwy

帮忙看一下这个问题

Take a look at this problem

你试着烧一下这个系统https://github.com/zwyzwm/milkv.io/releases/tag/mirror,看看有用不

你好,我烧了这个景象,貌似还是一样的错误 :smiling_face_with_tear:

[root@milkv-duo]~# uname -a
Linux milkv-duo 5.10.4-tag- #1 PREEMPT Thu Sep 12 14:08:59 CST 2024 riscv64 GNU/Linux

[root@milkv-duo]~# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Line 9: unknown network field 'identity'.
Line 10: unknown network field 'password'.
Line 11: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.

而且跑 wpa_cli 的话会得到这个提示:

[root@milkv-duo]~# wpa_cli
wpa_cli v2.9
Copyright (c) 2004-2019, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.



Interactive mode

Could not connect to wpa_supplicant: (nil) - re-trying

你连接的无线wifi,是企业wifi麻?还是什么?

对的,连接的是办公室里的 wifi 网络。