nmcli setting wrong value for username in config file

Bug #1873072 reported by Mark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
New
Low
Unassigned

Bug Description

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

Revision history for this message
Mark (e-launchpad-net) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, it looks like an upstream issue and would be best reported to gitlab

Changed in network-manager (Ubuntu):
importance: Undecided → Low
Revision history for this message
Mark (e-launchpad-net) wrote :

Do you have any more information about who this should be reported to? Like a url?

Revision history for this message
Sebastien Bacher (seb128) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.