J-Lentz / iwgtk

Lightweight wireless networking GUI (front-end for iwd)
GNU General Public License v3.0
217 stars 15 forks source link

Can't connect to EAP network #9

Open trn1ty opened 4 years ago

trn1ty commented 4 years ago

OS: Arch latest; hardware: Thinkpad T420 (Intel Corporation Centrino Advanced-N 6205); window manager: i3-gaps I'm trying to connect to my school's EAP access point and nothing happens upon clicking the Connect button next to the EAP network. The behavior I expected was for it to provide feedback saying the EAP network was unreachable or provide a way for me to input my access credentials.

Thanks in advance for any help.

J-Lentz commented 4 years ago

As far as I know, iwd currently does not support connecting to EAP networks through its D-Bus interface, which means the user must write a network configuration file (See: man iwd.network) and place it in /var/lib/iwd/.

Perhaps iwgtk should show a pop-up window containing instructions to write a network configuration file when the user attempts to connect to an unknown EAP network. The current behavior (printing an error to stderr and otherwise doing nothing) is certainly less than ideal.

Just to confirm, if you run iwgtk from the command line and attempt to connect to the network, do you see a net.connman.iwd.NotSupported error?

trn1ty commented 4 years ago

Let me try again tomorrow and copy the errors. That functionality would be greatly appreciated! I spent a while today trying to figure out writing a configuration file and just gave up and wired in.

trn1ty commented 4 years ago

I'm not getting net.connman.iwd.NotSupported errors, I seem to actually be getting a combination of net.connman.iwd.InProgresses and (iwgtk:4559): GLib-GIO-CRITICAL **: 11:00:30.487: g_bus_watch_name_on_connection: assertion 'G_IS_DBUS_CONNECTION (connection)' failed. Every time I try to connect it's one or both of them.

dnsefe commented 4 years ago

As @J-Lentz mentioned in his post above, you need to create a configuration file in /var/lib/iwd and save it as ssid.8021x You can find way more information if you look for "iwd" in the ArchWiki. There is also some example configuration which you can adjust to your needs.

I can confirm that using the latter with iwgtk, I have no issues connecting to e.g. eduroam (PEAP/MSCHAPV2), but keep in mind that certain kernels don't play well. I had a lot of issues with kernel 5.8.5, but the newer versions seem to work well. Currently I am on 5.8.14.

EDIT: The newest kernel (5.9.1) together with iwd and iwgtk work fine on my school's EAP network.

trn1ty commented 4 years ago

Ideally there should at least be a "Function unsupported" message.