Whenever I try to connect to the network i get “Operation Aborted” or “Error loading /var/lib/iwd//network.8021x”
[Security]
EAP-Method=PEAP
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-Identity=<id>
EAP-Password=<pswd>
EAP-PEAP-Phase2-Identity=<id>
EAP-PEAP-Phase2-Password=<pswd>
[Settings]
AutoConnect=true
Probably the usual Eduroam issue.
nmcli connection show
nmcli connection modify NAME 802-1x.phase1-auth-flags 32
where NAME is the connection name you got from the first command.
I don’t know if the proposed answer helped but as for the “Error loading /var/lib/iwd//network.8021x”, I’ve encountered it as well because I had BOM on the beginning of my eduroam.8021x (maybe it was copied from Arch Wiki, do not remember). Just to check your network config format, you can try following test (as used by current IWD for parsing):
#include <assert.h>
#include <stdint.h>
#include <ell/settings.h>
int main() {
struct l_settings *settings = l_settings_new();
assert(l_settings_load_from_file(settings, "/var/lib/iwd//network.8021x"));
}
(link with -lell and run the executable perhaps as superuser, if needed)