Bug 1572863

Summary: "Unknown form ID 'frm'" when connecting to "Network Connect" VPN
Product: [Fedora] Fedora EPEL Reporter: Toralf <bugzilla>
Component: NetworkManager-openconnectAssignee: David Woodhouse <dwmw2>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: code, dcbw, dwmw2, n.mavrogiannopoulos, rdieter, thaller
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-23 16:08:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Wrapper script mentioned in description
none
Patch mentioned in description none

Description Toralf 2018-04-28 08:37:46 UTC
Created attachment 1427986 [details]
Wrapper script mentioned in description

Description of problem:
NetworkManager-openconnect will not let me connect to my employers VPN, which is based on Pulse Secure "Network Connect" (previously a Juniper Network Product.) Connection attempts fail with message

Unknown form ID 'frm'


Version-Release number of selected component (if applicable):
1.2.4-4.el7

How reproducible:
Every time

Steps to Reproduce:
1. In the "Network Connections" window, select "Add", and choose connection type  "Cisco AnyConnect Compatible VPN (openconnect) 
2. Enter a name into the "Connection name" field, e.g. "Office VPN"
3. Select "Juniper/Pulse Network" from the "VPN Protocol:" combo box, and enter VPN connection hostname into the "Gateway:" field.
4. Set up other necessary parameters... I'm also enabling "Allow Cisco Secure Desktop trojan", and using a wrapper script that will be attached.
5. Select the connection in panel menu, or alternatively enable via
     nmcli con up "Office VPN"
   in the console
6. Enter user name and password and press "Login" when requested via pop-up window.


Actual results:
Message

Unknown form ID 'frm'

appears. Connection is not established.

Expected results:
Connection is established.

Additional info:
Closer inspection reveals that the problem is somehow related to the "user agent" string sent to the gateway; if this is set-up so as to pretend to be a well-known browser, the connection actually works. Unfortunately, that requires a source code change, as far as I can tell. I will attach a patch that shows the necessary update.

Comment 1 Toralf 2018-04-28 08:39:39 UTC
Created attachment 1427987 [details]
Patch mentioned in description

Comment 2 Nikos Mavrogiannopoulos 2022-07-23 16:08:15 UTC
If it is still relevant please reopen or bring it upstream:
https://gitlab.com/openconnect/openconnect/-/issues