openconnect VPN for all Users with individual credentials possible?

by user2545669   Last Updated January 12, 2018 17:02 PM

Hi there and thanks for reading!

I want to preset an openconnect VPN connection (gateway + cert) for all users but let each connect with their own credentials.

Here is what i have so far:

  • install network-manager-openconnect-gnome (I use gnome3)
  • use nmcli to add the connection:

    nmcli c a ifname "*" con-name myVPN type vpn vpn-type openconnect user-name -- ipv4.method auto ipv4.ignore-auto-routes yes vpn.persistent no "authtype = password, gateway = myGateway.dom, cacert = /etc/ssl/certs/myCert.pem"

Connection shows up as expected, so far so good.

The Issue is that when a user tries to connect, a root password prompt comes up... if I cancel the prompt 3 times the connection credential window is shown anyway, but when valid credentials are entered and confirmed, nothing happens. If I enter the root password, the connection is successful with the same credentials.

Is it even possible to do this with nm? Should I run a login script and create one connection per user instead?

Related Questions

Gnome openconnect cannot resolve host on second try

Updated September 13, 2017 20:02 PM

building OpenConnect from source fails

Updated September 20, 2015 16:01 PM

Build OpenConnect on 14.04 with PKCS#11 support

Updated April 25, 2017 11:02 AM

SSH to OpenConnect Client

Updated April 03, 2018 16:02 PM

Openconnect won't disconnect in Ubuntu 17.10

Updated December 01, 2017 19:02 PM