Prompts for both the user and group passwords even though group password has been saved

Bug #1043043 reported by Matthew Gregg
236
This bug affects 53 people
Affects Status Importance Assigned to Milestone
network-manager-vpnc
Confirmed
Undecided
Unassigned
network-manager (Fedora)
Fix Released
Low

Bug Description

Using up to date 12.10. Despite the group password having been saved, I am being prompted to enter both my user password and the group password upon initiating a VPN connection. This is a new issue with 12.10. Thinking this might be related to the the 12.04 to 12.10 upgrade, I have tried creating a new VPN account, but got the same result. VPN type is "Cisco Compatible VPN(vpnc)".
---
ApportVersion: 2.5.1-0ubuntu3
Architecture: amd64
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
DistroRelease: Ubuntu 12.10
EcryptfsInUse: Yes
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
IpRoute:
 default via 192.168.1.1 dev eth0 proto static
 169.254.0.0/16 dev eth0 scope link metric 1000
 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.150 metric 1
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=false
 WWANEnabled=true
 WimaxEnabled=true
NonfreeKernelModules: nvidia wl
Package: network-manager 0.9.6.0-0ubuntu5
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.5.0-13.14-generic 3.5.3
RfKill:
 0: brcmwl-0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: quantal running-unity
Uname: Linux 3.5.0-13-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare ssh
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH
 eth0 802-3-ethernet connected /org/freedesktop/NetworkManager/Devices/1
 eth1 802-11-wireless unavailable /org/freedesktop/NetworkManager/Devices/0
nmcli-nm:
 RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
 running 0.9.6.0 connected enabled enabled disabled enabled disabled

Revision history for this message
In , Russell (russell-redhat-bugs) wrote :

Description of problem:
NetworkManager-vpnc in FC6 and F7 has an option to save only the group password
in the keyring. The package in rawhide allows you to either save both passwords
or neither. This was fixed in the NM 0.6 branch after the 0.7 work had begun.
It appears to have not been merged in yet.

Revision history for this message
In , Denis (denis-redhat-bugs) wrote :

I ported the patch to F-8. Should show up at the next NetworkManager-vpnc release.

Revision history for this message
In , Denis (denis-redhat-bugs) wrote :

*** Bug 378921 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

NetworkManager-vpnc-0.7.0-0.6.3.svn3109.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with
 su -c 'yum --enablerepo=updates-testing update NetworkManager-vpnc'

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

NetworkManager-vpnc-0.7.0-0.6.3.svn3109.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.

Revision history for this message
Thomas Hood (jdthood) wrote :

Please open a terminal and run "apport-collect 1043043" to submit more information about the affected system.

Changed in network-manager (Ubuntu):
status: New → Incomplete
description: updated
tags: added: vpnc
tags: added: quantal
summary: - VPN prompting for both the user and group password
+ Prompts for both the user and group passwords even though group password
+ has been saved
Revision history for this message
Matthew Gregg (mcg) wrote : Dependencies.txt

apport information

tags: added: apport-collected running-unity
description: updated
Revision history for this message
Matthew Gregg (mcg) wrote : IpAddr.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : IwConfig.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : NetDevice.eth0.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : NetDevice.eth1.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : NetDevice.lo.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : NetworkManager.conf.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : PciNetwork.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : ProcEnviron.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : WifiSyslog.txt

apport information

Revision history for this message
Matthew Gregg (mcg) wrote : nmcli-con.txt

apport information

Revision history for this message
Adrian Bridgett (adrian-bridgett) wrote :

I've just had this today as well. I'm using xubuntu and had to kill/restart the nm-applet (https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1006141 - seems related to suspend/resume).

In my case, going into vpn->edit showed that the group password was marked as "saved" but was blank for one vpn. Another vpnc vpn entry was marked as saved but had the correct group password. Both prompt for group password on connect and fail without entering itii network-manager 0.9.6.0-0ubuntu7 amd64 network management framework (daemon and userspace tools)
ii network-manager-gnome 0.9.6.2-0ubuntu5 amd64 network management framework (GNOME frontend)
ii network-manager-openvpn 0.9.6.0-0ubuntu2 amd64 network management framework (OpenVPN plugin core)
ii network-manager-openvpn-gnome 0.9.6.0-0ubuntu2 amd64 network management framework (OpenVPN plugin GNOME GUI)
ii network-manager-pptp 0.9.6.0-0ubuntu1 amd64 network management framework (PPTP plugin core)
ii network-manager-pptp-gnome 0.9.6.0-0ubuntu1 amd64 network management framework (PPTP plugin GNOME GUI)
ii network-manager-vpnc 0.9.6.0-0ubuntu1 amd64 network management framework (VPNC plugin core)
ii network-manager-vpnc-gnome 0.9.6.0-0ubuntu1 amd64 network management framework (VPNC plugin GNOME GUI)
ii openvpn 2.2.1-8ubuntu1 amd64 virtual private network daemon
ii vpnc 0.5.3r512-2ubuntu1 amd64 Cisco-compatible VPN client
ii libnm-glib-vpn1 0.9.6.0-0ubuntu7 amd64 network management framework (GLib VPN shared library)

Revision history for this message
Joe Snikeris (joe-snikeris) wrote :

I am also experiencing this w/ a vpnc connection on Ubuntu 12.10 amd64.

Revision history for this message
Matthew Gregg (mcg) wrote :

This bug is currently marked "incomplete". What more can I provide to move this forward.

Revision history for this message
Joe Snikeris (joe-snikeris) wrote :

I'm not experiencing this anymore. I'm not sure if it was a recent update or if something else changed on my system.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Matthew: it should not be incomplete at this time, but I have a request. Could you please upload screenshots of where you enter the password(s) at VPN account setup and where you are asked again. Also, have you installed all updates?

Revision history for this message
Matthew Gregg (mcg) wrote :

Adding screenshots as requested.

Revision history for this message
Matthew Gregg (mcg) wrote :
Revision history for this message
Matthew Gregg (mcg) wrote :

AFAIK, I am running an up to date 12.10.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Are you only using group password? This sounds a bit like bug #321378 and https://bugzilla.redhat.com/show_bug.cgi?id=366361.

Changed in network-manager (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Matthew Gregg (mcg) wrote :

I am only saving the group password. The non-group password is unsaved, since it is provided via an RSA key fob. I can confirm the group password is saved in the keyring as a "VPN IPSec secret"

Revision history for this message
Matthew Gregg (mcg) wrote :

And just to confirm this worked until 12.10.

Revision history for this message
Matthew Gregg (mcg) wrote :

Reading over bug #321378, I added and saved a bogus password for my VPN account, it was saved in the keyring as "VPN Xauth password" along with the group password "VPN IPsec secret". With both set, I am no longer prompted for any login information, but of course the connection fails since it's not using a valid password.

Revision history for this message
Matthew Gregg (mcg) wrote :

Sorry for all the comments, but I just worked around the issue by editing, /etc/NetworkManager/system-connections/MY_CONNECTION and setting:

[vpn]
ipsec-secret-type=save
IPSec secret-flags=0

and adding:

[vpn-secrets]
IPSec secret=MYSECRET

I am no longer prompted for anything other than the password when connecting. So obviously we have an issue with NM reading just the group password(IPSec secret) from the keyring.

Revision history for this message
Matthew Gregg (mcg) wrote :

One last comment. I noticed that with the [vpn-secrets] block in place, editing and saving the group password in the NM GUI updates the config file with the changes. It no longer uses the keyring, but works.

Revision history for this message
Adam (jedxlaom) wrote :

I see this as well. Running 12.10 with all current updates.

For me the problem is intermittent. Sometimes I see it, sometimes not, when I do it is typically after the machine has been idle for a long time.

I've also found that when I get the prompt for both user and group PW, if I hit "cancel" and then try again, it has magically found the group password, I get only the prompt for user password, and everything works great.

Revision history for this message
N Carter (ncarter100) wrote :

Just upgraded to 12.10 from 12.04 and see exactly same as jedxlaom above, including the 'cancel' workaround

Revision history for this message
Adrian Wilkins (adrian-wilkins) wrote :

The "cancel" workaround does not work here.

The workaround in comment #25 works.

Revision history for this message
rantsh (rantsh) wrote :

This issue also affects me exactly as reported by Matthew Gregg, it worked fine all the time while I was on Xubuntu 12.04 LTS, it was only recently I moved from LTS to normal and upgraded to 12.10, then this issue started for me

Revision history for this message
william fischer (maxxjvx) wrote :

I have am experiencing the same issue. If I wait a couple minutes after logging into the computer, it will just prompt me for my password. But I usually do the "Cancel" work around and by the second "Cancel", I will get just the password prompt.

Linux COMPUTERX 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 18:26:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Rafal Dudycz (kanton) wrote :

This issue is still visible in Ubuntu 13.04.

Revision history for this message
Matthew Gregg (mcg) wrote :

Work around still working for me in 13.04 as well.

Revision history for this message
Z@bA (zaba-marcin) wrote :

I've been experiencing same issue and for me the solution was to change in /etc/NetworkManager/system-connections/MY_CONNECTION from:
IPSec secret-flags=1
to:
IPSec secret-flags=0

Revision history for this message
Ricky Beck (rickybeck75) wrote :

Work around works for me in 13.04

Revision history for this message
Mike Cavedon (mpc755) wrote :
Revision history for this message
Tobias Schmidt (tobijohn-c) wrote :

#34 works for me too in 13.10

Revision history for this message
jm (joao-t-martins) wrote :

#34 works for me on 13.10 64-bit.

Revision history for this message
Brother Iain (hyperanalysis) wrote :

I can confirm that #34 worked for me after manually adding [vpn-secrets] as per #25, despite group password already entered in GUI.
Ubuntu 13.10 64-bit, all updates, using cisco VPN with RSA fob.

Revision history for this message
Benjamin Xiao (ben-r-xiao) wrote :

Still happening in 14.04. When is this bug going to be fixed?

Revision history for this message
bleathem (bleathem) wrote :

I also experienced this problem in 14.04 after upgrading from 12.04. The workaround of editing the config file in #25 worked for me.

Revision history for this message
Bevan Bennett (bmvan) wrote :

I've also been having this issue since updating from 13.10 to 14.04.

There seemed to be about a 20% chance that the VPN client would work correctly each time I invoked it, which led to frustrating repeated invocations hoping to get lucky.

The one line hack from comment #34 appears to have made it work again.

Revision history for this message
Hawk (beehock) wrote :

This is still happening in 14.04. Workaround is in comment #34

no longer affects: network-manager-vpnc (Ubuntu)
affects: network-manager (Ubuntu) → network-manager-vpnc
Revision history for this message
Piyush (piyushgarg80) wrote :

This bug is still exists in fresh distribution of Ubuntu Gnome 14.10.

Revision history for this message
Hawk (beehock) wrote :

still happening in fresh install of ubuntu 14.10. workaround #25 still valid.

Revision history for this message
kovinet (borut-kovacec) wrote :

I started experiencing this lately on 14.04 (it used to work before), for all VPN connections. I have all passwords marked as Saved, but I get popup asking for password every time I connect to any VPN connection (OpenVPN, IPSEC, PPTP).

Revision history for this message
Harry D (harryd100) wrote :

Hi, I experience the same issue also, it used to work also under 14.04, but along the way (updates) this started happening and is very anoying.

Revision history for this message
atimonin (atimonin) wrote :

I also hit this issue in 14.04. I use "cancel" and connect again (2-4 times if I'm unlucky).

Revision history for this message
Roland Sommer (rsommer) wrote :

I'm experiencing this on 16.04, too. If i hit "cancel" and then connect again, the group password is filled in. If i store both passwords, everything is fine (but quite insecure). Workaround #25 did not work for me.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Note that the converse issue also occurs: the group password is prompted for even if the remote server does not require it. (That is, I have a configuration file working on the command line with `vpnc` without a "IPSec secret" entry at all, but the GUI plugin seems to require that there be a secret.)

Revision history for this message
ThePhilips (thephilips) wrote :

> I started experiencing this lately on 14.04 (it used to work before), for all VPN connections.

Ditto. It is a very annoying issue - it has literally broke my transparent VPN gateway VM. After starting it, nothing works. Now, I have to go into the VM and enter the password manually. I have found no traces of the (rumored on the interwebs) checkbox for "automatically unlock the key ring on log in". It just doesn't exist anywhere.

It is a major regression to me.

Revision history for this message
Martin7182 (martin-zwaal) wrote :

Same issue on 14.04. Workaround #25 seems to work fine.

Changed in network-manager (Fedora):
importance: Unknown → Low
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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