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.
Created attachment 1427987 [details] Patch mentioned in description
If it is still relevant please reopen or bring it upstream: https://gitlab.com/openconnect/openconnect/-/issues