You are not logged in.
I would like to connect to my AnyConnect VPN through network manager, however I have not been able to get it to save the username. I have tried using the command given in the openconnect arch wiki, modifying it to add vpn.user-name:
nmcli connection add connection.id [NAME] type vpn service-type openconnect vpn.user-name [USERNAME] data cookie-flags=2,gateway=[ANYCONNECT_URL],protocol=anyconnect vpn.secrets gateway=[ANYCONNECT_URL],gwcert=
However this still asks for my username. I would like to only be asked for my password each time. I have searched for answers and read through documentation but cannot find any way that works, including passing the username into vpn.data or vpn.sectrets
Running
openconnect [ANYCONNECT_URL] -u [USERNAME]
does work how I want it; it skips straight to asking for my password. However I want the convenience of having it through network manager, especially being able to connect to it through nmtui
Any advice? Thanks
Offline