0

I'm trying to connect to an OpenConnect VPN via the NetworkManager OpenConnect Plugin on Ubuntu 20.04.4 LTS. The VPN authentication only works by generating a cookie via a browser login form (Single Sign On, SSO). Never the less the NetworkManager plugin will only show me a gnome user, password prompt even though that's useless (no matter what I enter the form is just shown to me again without any error similar to here).

The manual way from the shell works like this:

openconnect-sso vpn.uni.com -> Opens Login Form in browser and Outputs cookie

openconnect vpn.uni.com --useragent=AnyConnect --cookie=MYCOKIE -> connects to the VPN Successfully.

Is there any way to get my NetworkManager OpenConnect Plugin to show me the SSO Login form and authenticate me via the generated cookie? If it's not supported natively are there workaround to get my VPN working as a NetworkManager Connection? (e.g. to execute a script when connecting to a vpn via gnome? Etc.?)

Version Information:

  • network-manager-openconnect/focal,now 1.2.6-1 amd64 [installed]
  • network-manager-openconnect-gnome/focal,now 1.2.6-1 amd64 [installed]
  • openconnect/focal,now 8.05-1 amd64 [installed]
  • Ubuntu 20.04.4 LTS, focal
Jakob
  • 1

1 Answers1

0

I was able to get SSO prompts, by setting the useragent to 'AnyConnect' The connection always failed though

Did you ever get to the bottom of this?

I can use openconnect-sso -s mySever and connect without any issues/cookies