nmcli connection modify CONNECTIONNAME vpn.secrets "password=[PASSWORD]"So I execute this as root, and this initially produces very promising noises in /var/log/messages:
Jul 22 20:41:35 jack NetworkManager[1525]: <info> [1595464895.3350] audit: op="connection-update" uuid="UUID" name="CONNECTIONNAME" args="vpn.secrets" pid=67812 uid=0 result="success"
However, the password appears to disappear into a black hole: nmcli --show-secrets connection CONNECTIONNAME | grep secrets vpn.secrets: -- And nmcli connection up fails because there's no password.The VPN connection's configuration was imported from the VPN provider's supplied ovpn file, via "nmcli connection import".
Some searching around found some hits suggesting that my /etc/NetworkManager/system-connections/CONNECTIONNAME should have a [vpn- secrets] section, but mine does not. If I add it, run "nmcli connection reload", "nmcli connection modify", that just removes the [vpn-secrets] section.
What would be the right way to do this?
Attachment:
pgpkFP9rxJt0O.pgp
Description: PGP signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx