Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610034 - =net-misc/networkmanager-openconnect-1.2.4 is broken, please put =net-misc/networkmanager-openconnect-1.2.2 back in the tree
Summary: =net-misc/networkmanager-openconnect-1.2.4 is broken, please put =net-misc/ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-19 20:42 UTC by Nick
Modified: 2017-11-25 17:36 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openconnect-prompt.png (openconnect-prompt.png,22.59 KB, image/png)
2017-04-23 18:20 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2017-02-19 20:42:55 UTC
=net-misc/networkmanager-openconnect-1.2.4 does not work (see the linked bug reports) and was recently stabilized; =net-misc/networkmanager-openconnect-1.2.2 was the last working version and was recently removed from the tree. Please put it back until the problems with =net-misc/networkmanager-openconnect-1.2.4 (or whatever other package is causing problems with it) are resolved.

https://bugs.gentoo.org/show_bug.cgi?id=609732
https://bugs.gentoo.org/show_bug.cgi?id=609594
https://bugs.gentoo.org/show_bug.cgi?id=609314
Comment 1 Nick 2017-02-22 06:16:08 UTC
Update: Installing =net-misc/networkmanager-openconnect-1.2.4 from a local overlay with the line

  --without-libnm-glib \

removed does not fix the problem (even after rebooting).

However, for me, everything worked again after installing =net-misc/networkmanager-openconnect-1.2.2 from a local overlay (by copying networkmanager-openconnect-1.2.4.ebuild and renaming it to networkmanager-openconnect-1.2.2.ebuild, removing the --without-libnm-glib line) and then rebooting.
Comment 2 Nick 2017-03-19 01:26:43 UTC
In the systemd journal, the following error message appears when trying to connect to an openconnect VPN:

Invalid VPN service type (cannot find authentication binary)

Rebooting does not fix the bug for me. Downgrading to 1.2.2 (using a local overlay) does fix it for me.
Comment 3 Mike Gilbert gentoo-dev 2017-04-23 17:40:31 UTC
networkmanager-openconnect-1.2.4-r1 is working fine for me.
Comment 4 Nick 2017-04-23 18:20:04 UTC
Created attachment 470736 [details]
openconnect-prompt.png

Removing --without-libnm-glib allows the VPN to connect (before, it wouldn't even do this).

However, for me, when connecting to a VPN which opens a prompt to ask for more details, it still fails to show the following prompt (attached); the window briefly appears but then immediately closes without allowing for any user input. This is a regression because it does not allow the user to change any options, including the username and password for the connection.

I have 1.2.2 in a local overlay* and I fix the bug by downgrading (i.e. the window shows when attempting to connect to the VPN), and then re-enable the bug by upgrading to 1.2.4-r1 in the tree again.

* All I did was copy the 1.2.4-r1 ebuild and change the filename to 1.2.2 so it would install that version instead.

Here is the terminal output which occurs when I connect using nmcli (which I believe has always worked for me even when openconnect had --without-libnm-glib and failed to even connect):

(I have removed / made minor changes to details which identify the VPN hostname)

nmcli --ask c u <VPN NAME>
POST <VPN HOSTNAME>
Connected to <SERVER IP ADDRESS>
SSL negotiation with <VPN HOSTNAME>
Server certificate verify failed: signer not found

Certificate from VPN server "<VPN HOSTNAME>" failed verification.
Reason: signer not found
Enter 'yes' to accept, 'no' to abort; anything else to view: yes
Connected to HTTPS on <VPN HOSTNAME>
XML POST enabled
Please choose a VPN tunnel type, then enter your username and password to initiate the secured connection.
GROUP: [1-Tunnel-<Local>-Traffic-Only|2-Tunnel-All-Traffic|3-Tunnel-WinDomainUsers|4-Tunnel-All-WinDomainUsers]:2
POST <VPN HOSTNAME>
XML POST enabled
Please choose a VPN tunnel type, then enter your username and password to initiate the secured connection.
Username:<USERNAME>
Password:
POST <VPN HOSTNAME>
VPN connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/7)

Regarding GROUP, because of this bug, it is not possible for a user connecting to this VPN server to use the GUI dialog to switch between (2) tunneling all of their traffic and (1) tunneling only traffic to the same subnet as the server.