Public bug reported: If you try to set the username for an openvpn VPN connection via the cli with the nmcli command, it will set the wrong value in the network manager system-connections config file.
command example: nmcli connection modify vpn_name vpn.user-name my.username the file /etc/NetworkManager/system-connections/vpn_name.nmconnection will have the value vpn.user-name set to my.username This value is not used by network manager or openvpn when trying to create the VPN connection, the correct value is vpn.username. This is the value set by the GUI editor. This appears to be this exact bug reported to Redhat back in 2014. https://bugzilla.redhat.com/show_bug.cgi?id=1060460 ProblemType: Bug DistroRelease: Ubuntu 19.10 Package: network-manager 1.20.4-2ubuntu2.2 ProcVersionSignature: Ubuntu 5.3.0-42.34-generic 5.3.18 Uname: Linux 5.3.0-42-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu8.8 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Apr 15 16:29:36 2020 InstallationDate: Installed on 2020-02-13 (62 days ago) InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017) IpRoute: default via 192.168.1.1 dev enx98e743e4fd54 proto dhcp metric 100 default via 192.168.1.1 dev wlo1 proto dhcp metric 600 169.254.0.0/16 dev wlo1 scope link metric 1000 192.168.1.0/24 dev enx98e743e4fd54 proto kernel scope link src 192.168.1.192 metric 100 192.168.1.0/24 dev wlo1 proto kernel scope link src 192.168.1.193 metric 600 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=bash SourcePackage: network-manager UpgradeStatus: No upgrade log present (probably fresh install) nmcli-nm: RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN running 1.20.4 connected started full enabled enabled enabled enabled enabled ** Affects: network-manager (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug eoan -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1873072 Title: nmcli setting wrong value for username in config file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1873072/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs