wifi 802.11 wpa2-enterprise under 1.1.9.28 - 2.0.0.10
I am having trouble logging into my work wi-fi. When I try to connect it gives:
Sorry. Could not connect to selected network.
It doesn't ask for id or password. I see something similar was logged and workarounds given with earlier versions of Sailfish, but the setting files for wifi under /var/lib/conman are now different and it isn't clear to me how to create a new directory and settings file for this connection.
The network details are:
Band: 802.11a, 802.11n,
Operation mode: Network(Infrastructure),
Authentication level: WPA2-Enterprise,
Data encryption: AES-CCMP
Any suggestions please?
Hi, the Problem is, that WPA2-Enterprise is not implemented in the GUI. But you can connect to those Networks by using a custom configuration file for connman. Here you find some information about connecting to a Network Similar to yours, but with another authentification method.
I hope this helps. If not, i could try to provide you with a configuration file and steps to install it into your system.
Regards, Hades
Hades0299 ( 2015-11-03 16:26:48 +0300 )editThanks, I looked at that entry, but the file structure and content under 1.1.9.28 is quite different to what is given there. I will do the updates that have just been released and then look at this again.
Jonah ( 2015-11-03 16:54:40 +0300 )editAt least for me the configuration file I created for a WPA2 Enterprise network ages ago (I don't even remember on which version) still works on 2.0.0.10 and it did all the way there. Might be worth giving it a shot even though the standard format has changed.
Ze German Guy ( 2015-11-04 08:26:54 +0300 )editWell I've tried the old format config file and tried to hack together the new one as well, but neither seems to work. Of course I'm guessing a bit with the new one. I made it like this:
create new directory /var/lib/connman/wifi_xxxxxx_yyyyyy_managed_psk, where xxxxxx is the wlan MAC address of the phone and yyyyyy is the SSID of the network
in this directory create a file called settings which contains:
[wifi_xxxxxx_yyyyyy_managed_psk]
SSID=yyyyyy
Name=network name
Frequency=2462
Favorite=false
AutoConnect=false
IPv4.method=dhcp
IPv4.DHCP.LastAddress=aaa.bb.c.dd
IPv6.method=auto
IPv6.privacy=prefered
EAP=peap
Phase2=MSCHAPV2
Identity=myid
Passphrase=mypassword
.
The ip address is of the network I'm trying to connect to.
So where have I gone wrong?
Jonah ( 2015-11-04 12:18:25 +0300 )editHi Jonah,
I did some digging and found the official documentation for the config-files (HERE). I am not sure, whether this helps, but you could look into the Exaples-section.
The thing, I think connman needs most is the Authentication-method (you used "EAP=peap" in the config above). Could you ask some administrator of your Network which method they use? Or do You have access to another wifi-client, a laptop or some coworkers phone, to check if there is the EAP displayed?
Regards
Hades
Hades0299 ( 2015-11-04 23:50:12 +0300 )editI agree with @Hades0299 that the EAP method is one thing you should investigate. Another thing might be the CA certificate. At least in my case I had to give a dedicated line for it in the config file in order to make the connection work.
Ze German Guy ( 2015-11-05 10:31:04 +0300 )editThe network is definitely peap according to other devices that connect to it. Adding the CA cert also makes no difference. I have tried removing some lines from the settings file that appear to be superfluous, but to no avail.
Jonah ( 2015-11-09 14:54:02 +0300 )editLooking at the system journal I can see service.connect() is returning "Invalid arguments". So I assume something in the config file is wrong, but it doesn't say what is invalid and so far staring at it hasn't helped....
Jonah ( 2015-11-12 17:22:16 +0300 )editSo the journal isn't very helpful here. Maybe checking one parameter at a time might be the key to a solution. By the way: I'm not exactly certain about the syntax in these config files, but in the one you posted above, there is a line which says "IPv6.privacy=prefered". Might be a typo, because at least in standard English "preferred" is spelled with a double r.
Ze German Guy ( 2015-11-12 17:30:19 +0300 )edit