You are not logged in.

#1 2025-05-21 11:04:32

jhopper
Member
Registered: 2025-05-21
Posts: 1

NetworkManager-openconnect save AnyConnect username

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

Board footer

Powered by FluxBB