Description of problem:
I configured openconnect VPN and wanted to use NetworkManager to connecto the corporate network. But every time I try to turn on the VPN and fails immediately. I found in the log of NetworkManager that it can't find application to prompt for password.
From the log:
NetworkManager: <error> [1472306950.6997] vpn-connection[0x557864ac61d0,8086690f-f62e-47d7-a316-724782cb035d,"VPN",0]: Failed to request VPN secrets #3: No agents were available for this request.
Version-Release number of selected component (if applicable):
Create openconnect VPN connection in Fedora 25 and try to connect. I used VPN connection with encrypted cert and secure token authentication. So before upgrading to Fedora 25 NetworkManager would ask for cert password and secure token password. Now it just silently fails to connect with only indication in the log.
Steps to Reproduce:
1. Configure openconnect VPN
2. Try to turn on the VPN
Connection setup silently fails without asking password.
NetworkManager should ask for password for certificate and for secure token.
I suspect that this may happen because Fedora 25 has gnome-3.21.* for most of the packages and gnome-keyring is 3.20.0
to request a password/secret, NetworkManager calls out to a "secret-agent". That is a program that obtains the password somehow, for example by asking the user or looking into the keyring.
Such secret agents are for example nmcli, nmtui, plasma-nm, nm-applet, gnome-shell.
To handle secrets for VPN (and especially for openconnect which is more complicated) the secret agent also needs help from the VPN plugin. Certainly nm-applet is able to do all of that, not sure about the others.
Can you first try with having nm-applet running?
(I see, you have the relevant plugin installed: NetworkManager-openconnect-gnome)
With latest update new NetworkManager came in fc25 and now everything works as expected. Thank you!