Bug 284155 - networkmanagement doesn't remember passwords
Summary: networkmanagement doesn't remember passwords
Status: RESOLVED UPSTREAM
Alias: None
Product: Network Management
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Will Stephenson
URL:
Keywords:
: 284670 286289 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-16 07:21 UTC by Tom Kijas
Modified: 2013-10-31 19:13 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Kijas 2011-10-16 07:21:25 UTC
Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

Hi, I use networkmanagement in latest Kubuntu (11.10 64bit) and every time I want to save password (and connect automaticaly) to wireless network, it asks me for a password. If I have enabled encrypted storage for passwords, it asks for the password to KWallet and then, if it is correct, it asks me for the password to the network.
If I use UNencrypted storage for passwords, it just asks me for the password to the network.

Reproducible: Always

Steps to Reproduce:
Use networkmanagement, connect to some protected wireless networks, save it (set it to connect automatically).

Actual Results:  
Doesn't remember those passwords, no difference they are in encrypted (kwallet) or unencrypted (file) storage.

Expected Results:  
To remember passwords to networks.

Thank you
Comment 1 Lamarque V. Souza 2011-10-16 13:13:49 UTC
Which Plasma NM and NetworkManager versions do you use? There is a bug in NM < 0.9.0 that prevents Plasma NM to save passwords.

I have just tested here and for me it saves passwords and connects without problems.
Comment 2 Lamarque V. Souza 2011-10-22 07:59:32 UTC
*** Bug 284670 has been marked as a duplicate of this bug. ***
Comment 3 Lamarque V. Souza 2011-10-26 14:13:43 UTC
There is this bug in Ubuntu's launchpad: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/879836

It is about NetworkManager-0.9.1.90-0ubuntu4, is that the version you use? Can you ask in that bug entry if the guy who reported the bug is using nm-applet or Plasma NM?
Comment 4 Gunter Ohrner 2011-10-26 18:39:47 UTC
I use:
network-manager 0.9.1.90-0ubuntu4
plasma-widget-networkmanagement 0.9~svngit.nm09.20110610.0c83d8-0ubuntu5

I also just asked the Ubuntu-reporter.

Additionally, I had already reported this to launchpad myself, but no real reaction so far: https://bugs.launchpad.net/ubuntu/+source/networkmanagement/+bug/879828
Comment 5 Lamarque V. Souza 2011-10-26 18:46:08 UTC
According to this https://forum.sabayon.org/viewtopic.php?f=52&t=25537 NM-0.9.1.90 really has this problem when using ifnet plugin to store settings. Can you try disabling this plugin, restarting NM and see if it solves your problem?

You can disabled using these instructions:

https://forum.sabayon.org/viewtopic.php?f=52&t=25537&start=10#p142139
Comment 6 Gunter Ohrner 2011-10-27 20:37:12 UTC
Mh, I do not seem to be using the plugin you mentioned. 

I don't have a /etc/NetworkManager/nm-system-settings.conf but /etc/NetworkManager/NetworkManager.conf probably comes close. It just contains the following, so no "ifnet"...

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false
Comment 7 Lamarque V. Souza 2011-10-27 21:13:52 UTC
The plasma NM version used by Ubuntu is too old, there have been a lot of changes in password handling since June. Since I cannot reproduce this bug in it also happens with nm-applet it is very unlikely this is a Plasma NM bug. I am very tempted to close this as upstream if nobody reproduces this bug in Plasma NM 0.8.90:

http://lamarque-lvs.blogspot.com/2011/10/new-version-after-first-release-plasma.html
Comment 8 Gunter Ohrner 2011-10-27 21:29:11 UTC
I also fear it's just a bug in the Plasma NM snapshot used by Ubuntu. :-(

I hope they'll release a fixed / updated version soon, otherwise I'll have to rebuild the package with an updated source tar, something I'd rather like to avoid if possible...
Comment 9 Lamarque V. Souza 2011-11-10 20:06:17 UTC
*** Bug 286289 has been marked as a duplicate of this bug. ***
Comment 10 Germano Massullo 2011-12-08 16:20:06 UTC
I tried to look for the plugin Lamarque wrote about.
My /etc/NetworkManager/NetworkManager.conf was;
[main]
plugins=ifcfg-rh

To try I created an ad-hoc wifi network with my Android device and I told the computer to connect to it. It worked.
Then I added 
[ifnet]
managed=false
auto_refresh=false
to that file and rebooted the system.

The computer connected once again without problems and without asking me again for the password.
So I resumed the old NetworkManager.conf and tried again. Identical situation, I was not asked for wifi password.
I noticed that it does it only on certain wifis.


Now I see you marked this bug report as UPSTREAM.
As I can read there https://bugs.kde.org/page.cgi?id=fields.html#resolution
it means:
"The problem described is a bug which cannot be fixed by the application team for the product due to the bug existing in a dependency of the product. The best example of this in KDE is a bug that is in Qt or X.org that would need to be fixed by those developers and should be filed in their issue tracking system."

So where should we open this bugreport?
Comment 11 Lamarque V. Souza 2011-12-08 17:02:48 UTC
http://bugs.gnome.org, against the product NetworkManager.
Comment 12 Germano Massullo 2011-12-18 18:09:03 UTC
Plase follow the bug evolving on https://bugzilla.gnome.org/show_bug.cgi?id=666465
This is the most annoying bug I have ever had on many computers
Comment 13 Andre Klapper 2011-12-18 20:18:46 UTC
(In reply to comment #7)
> The plasma NM version used by Ubuntu is too old, there have been a lot of
> changes in password handling since June.

Ubuntu 11.10 seems to ship
network-manager-kde (1:0.9~svngit.nm09.20110610.0c83d8-0ubuntu5) and
plasma-widget-networkmanagement (0.9~svngit.nm09.20110610.0c83d8-0ubuntu5).

So was this actually tested with a ***recent*** Plasma NM version 0.8.90 or newer and reproduced with such a version? If not then my guess is that it's an Ubuntu downstream issue (as they ship an ancient version), and not actually an issue to be considered UPSTREAM (yet) in GNOME Bugzilla where this was just filed.
Comment 14 Lamarque V. Souza 2011-12-18 20:40:02 UTC
According to the links above this problem als happens with nm-applet in Ubuntu and Sabyon, so it is not restricted to Ubuntu or Plasma NM. It is very likely the problem is in NetworkManager itself, that is why I marked it as upstream.
Comment 15 Andre Klapper 2011-12-18 22:12:36 UTC
Ah, thanks for explaining!
Comment 16 Gunter Ohrner 2012-02-12 21:55:32 UTC
Network manager works fine using the following packages in Kubuntu.
The NM Plasma Applet remembers my password since I upgraded KDE to Kubuntu's semi-official KDE 4.8.x-packages from their PPA.

ii  network-manager                                             0.9.1.90-0ubuntu5.1                        network management framework (daemon and userspace tools)
ii  plasma-widget-networkmanagement                             0.9.0~rc4-0ubuntu2~oneiric1~ppa1           Network Management widget for KDE Plasma workspaces
Comment 17 Thomas Damgaard 2013-10-31 19:13:21 UTC
I experience this in Ubuntu 13.10