Can't get openconnect VPN to work with plain password



Hello,

I'm trying to set up client openconnect VPN connection on a headless server. Same connection works on my home PC as a regular user, configured from nm-applet and storing password in keyring; on a server there's only root and nmcli. I copied most of the config, adding "password-flags=0" to [vpn] and "password=pAsSw0Rd" to [vpn-secrets]. Software is networkmanager 1.8.4 and networkmanager-openconnect 1.2.4 on both machines.

Here's /etc/NetworkManager/system-connections/vpnConn : https://pastebin.com/nGVD85ec

When trying to activate it:

# nmcli connection up vpnConn
A password is required to connect to 'vpnConn'.
Warning: password for 'vpn.secrets.gateway' not given in 'passwd-file' and nmcli cannot ask without '--ask' option.
Error: Connection activation failed: No valid secrets
# journalctl -e
Oct 20 11:30:36 archvm NetworkManager[1839]: <info>  [1508488236.7972] audit: op="connection-activate" uuid="ae9d0346-d03f-4feb-9042-a4b36966653b" name="vpnConn" pid=2006 uid=0 result="success"
Oct 20 11:30:36 archvm NetworkManager[1839]: <info>  [1508488236.8000] vpn-connection[0x55a3bf12f0d0,ae9d0346-d03f-4feb-9042-a4b36966653b,"vpnConn",0]: Started the VPN service, PID 2011
Oct 20 11:30:36 archvm NetworkManager[1839]: <info>  [1508488236.8097] vpn-connection[0x55a3bf12f0d0,ae9d0346-d03f-4feb-9042-a4b36966653b,"vpnConn",0]: Saw the service appear; activating connection
Oct 20 11:30:36 archvm NetworkManager[1839]: <error> [1508488236.8257] vpn-connection[0x55a3bf12f0d0,ae9d0346-d03f-4feb-9042-a4b36966653b,"vpnConn",0]: Failed to request VPN secrets #3: No agents were available for this request.                                                                                                                                                                                                 
Oct 20 11:30:36 archvm NetworkManager[1839]: <info>  [1508488236.8338] vpn-connection[0x55a3bf12f0d0,ae9d0346-d03f-4feb-9042-a4b36966653b,"vpnConn",0]: VPN service disappeared

Thanks in advance for any help.

--
--Regards, Aleksei


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]