Bug 341340 - Applet doesn't remember network password
Summary: Applet doesn't remember network password
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma-nm
Classification: Plasma
Component: applet (show other bugs)
Version: 5.1.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-28 04:42 UTC by mgolden
Modified: 2015-05-04 13:12 UTC (History)
3 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 mgolden 2014-11-28 04:42:17 UTC
I have a new install of kubuntu 14.10 plasma 5.  I still have my old home directory from kubuntu 14.04 (plasma 4).  The applet did not have my network password and didn't connect to the network.  More importantly, even after I supplied the password, it did not remember.  Each time I connected, it still asked for the passwork.  Only after I opened the connection editor and clicked save (I don't recall if I changed anything - I don't think so) did it start to remember the password.

Reproducible: Didn't try
Comment 1 Jan Grulich 2014-12-02 14:23:37 UTC
What Plasma 5 version do you have?
Comment 2 mgolden 2014-12-02 14:45:09 UTC
I burned the 14.10 plasma 5 DVD from the kubuntu.org web site and am running that.  I guess it could have been updated from the relevant repo.

http://www.kubuntu.org/getkubuntu
Comment 3 Jan Grulich 2014-12-04 11:38:48 UTC
Check if you have enabled KWallet and if networkmanagement kded module is loaded. I would also recommend updating your packages to the latest versions.
Comment 4 naraesk 2015-02-08 20:27:47 UTC
Same here with plasma 5.2 from the arch repository. The connection between the applet and kwallet seems broken:

1. I click on a connection, nm starts to connect to wifi
2. a popup appears to open my default wallet
→ the wallet is already open, all other programs can access it without problems
3. I enter my password for the wallet, but it always fails to open
→ When another application requires access I use the same password and it's working.

This is always reproducible. Kwallet is working fine, but nm fails to open/read my wallet.
Comment 5 mgolden 2015-02-09 05:12:21 UTC
Sorry - somehow I don't think I ever got the 2014-12-04 request for information...

My packages were up to date at the time, and there was no evident problem with kwallet.,  I do see kded5 running, and I have no reason to suspect it wasn't running at the time.  As I said, this problem permanently went away after I manually edited the network connection, so I can't reproduce it now.
Comment 6 Jan Grulich 2015-03-02 09:56:54 UTC
I 'm not able to reproduce this issue. I tried to remove my wireless connection and connect to it with a wrong password. I got prompted for a new one and when I passed the correct one, it got saved correctly. It's difficult to say what could be wrong in your case. Do you still have installed the kde4 based plasma-nm?
Comment 7 mgolden 2015-03-02 15:09:32 UTC
I saw this one when I installed the Kubuntu 14.10 KDE5 trial ISO a few
months ago.  It only happened right after the install, and one point I
would mention is that I retained my KDE4 home directory exactly.  I more
recently tried to run the Kubuntu alpha2, but was unable to get it to
install properly.  However, it did look like it was happening for the one
reboot I had success with (after which some package update messed up my
desktop beyond repair).

I am going to try later this week to install again, so we'll see if I can
reproduce it.
Comment 8 naraesk 2015-03-02 18:46:48 UTC
The installed package is plasma-nm 5.2.1-1from the arch repository.
Btw, it seems that i have the same problem with ksshaskpass.
Comment 9 Jan Grulich 2015-03-05 12:32:58 UTC
I believe that this bug has the same cause as bug 344600.

*** This bug has been marked as a duplicate of bug 344600 ***
Comment 10 Jan Grulich 2015-03-06 10:09:33 UTC
Ok, probably not related.
Comment 11 naraesk 2015-04-27 14:42:13 UTC
Just noticed. Even with a wallett without any password nm can't access it and keeps asking for the right password. Is there any other information I can provide?
Comment 12 Jan Grulich 2015-04-28 07:30:55 UTC
A couple of things to check: 
1) qdbus --session org.kde.kded5 /kded org.kde.kded5.isModuleAutoloaded "networkmanagement"
2) qdbus --session org.kde.kded5 /kded org.kde.kded5.loadedModules | grep networkmanagement
3) qdbus --session org.kde.kwalletd5 /modules/kwalletd5 org.kde.KWallet.isEnabled
Comment 13 naraesk 2015-04-28 07:37:28 UTC
$ qdbus --session org.kde.kded5 /kded org.kde.kded5.isModuleAutoloaded "networkmanagement"
true
$ qdbus --session org.kde.kded5 /kded org.kde.kded5.loadedModules | grep networkmanagement
networkmanagement
$ qdbus --session org.kde.kwalletd5 /modules/kwalletd5 org.kde.KWallet.isEnabled
true
Comment 14 Jan Grulich 2015-04-28 07:42:33 UTC
Hmm, everything looks correct, thanks for the info. Can you also check whether the old networkmanagement kded is not running by:
qdbus --session org.kde.kded /kded org.kde.kded.loadedModules | grep networkmanagement
Comment 15 naraesk 2015-04-28 07:46:30 UTC
no output ... guess this is correct too?
Comment 16 Jan Grulich 2015-04-28 11:48:23 UTC
Yes, it is. Well, the only thing what comes on my mind is whether you didn't cancel some dialog asking for access at the beginning (after installation) and now plasma-nm doesn't have access to it. Can you check that in KWallet configuration? Problem is that there is no official release of KF5 version of KWalletManager and you would need to probably compile it.
Comment 17 naraesk 2015-04-28 11:56:58 UTC
Hmm yep after the update to kf5  there were a lot of popups regarding kwallet, maybe i did something wrong there.
Something like plasma-nm is not in the list of allowed applications to access the wallet.
Comment 18 naraesk 2015-05-01 17:19:39 UTC
Ok, I've installed kwalletmanager5 (there was a aur package for arch avialable) and the applet now can access my wallet. Thanks a lot. :)