Bug 264024 - Network configuration saves wep passphrase in the wrong place in kwallet
Summary: Network configuration saves wep passphrase in the wrong place in kwallet
Status: RESOLVED WAITINGFORINFO
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:
Depends on:
Blocks:
 
Reported: 2011-01-22 23:38 UTC by Robert Simmons
Modified: 2011-11-08 16:09 UTC (History)
1 user (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 Robert Simmons 2011-01-22 23:38:14 UTC
Version:           unspecified (using KDE 4.5.5) 
OS:                Linux

When you setup a new wireless connection in System Settings using a wep password that password is saved in kwallet under Network Management > Maps > 802.11 wireless security > weppassphrase.  It also saved a string of letters and number in the wepkey1 variable.  It is not clear where this string comes from but, if you reboot, login, and supply the kwallet password the network manager looks for the wep password in the wepkey1 variable.  When it tries this bad password enough times (or there is some timeout) it prompts you for a new password.  If you click the "show password" box you can see that it is pulling this password from the garbage that it saved in wepkey1 at the start.  If you type the password again correctly in this dialog it saves the correct password to wepkey0.  From here on out it pulls the password from wepkey0 and everything works fine.

Really, it should always save to wepkey1 at the start and later on.  The dialog box for making a new wireless connection is different than the one that appears when a bad password is fed to the router later on, so the code is probably different for both.  One is saving the password in one location and the other a different place.

Reproducible: Always

Steps to Reproduce:
Delete the wireless connection
Add a new one with a wep password.
Look in kwallet at where it is saved.
reboot.
wait for timeout.
type correct password in dialog.
look in kwallet at where the new password is saved.

Actual Results:  
password saved in two places, both wrong.

Expected Results:  
password saved in wepkey1 and read from wepkey1 all subsequent times.

Kubuntu 10.10, KDE 4.5.5
Comment 1 Lamarque V. Souza 2011-06-13 09:13:33 UTC
Is this still happening?
Comment 2 Robert Simmons 2011-06-14 02:10:48 UTC
Yes.  Have you tried to reproduce it?  I just tried and it still happens.  I have upgraded to Kubuntu 11.04 and KDE 4.6.4.

All you need to do is delete the entry in Network Connections for your wireless connection, and go delete the two entries in kwallet that correspond with that wireless connection.  Then add a new wireless connection.  Immediately look in kwallet and show the passwords in that entry.  You will see that the password has been saved in the wrong place, specifically in field 7 "weppassphrase".

If you wait a moment, it will time out and present the password entry window again.  Here, if you check the box that shows the password, you will see a string of non-sense.  Delete the non-sense and enter the password for your wireless.  Now go back and look where it saved the password this time in kwallet.  It is in the right place now, field 3 "wepkey0" (I assume this is the right place, but basically there are two places that the software is saving the password, but only one of the two is where it is looking for the password).  Also, if you look at field 4 "wepkey1" you will find that it has taken that non-sense from earlier and saved it here for some reason.
Comment 3 Lamarque V. Souza 2011-09-10 18:12:14 UTC
I do not think this problem happens in branch nm09. Can you upgrade to NM-0.9 and  confirm it?
Comment 4 Robert Simmons 2011-09-10 21:42:24 UTC
If you mean knm-runtime then it is already 0.9.  I will check and see if this still occurs.
Comment 5 Lamarque V. Souza 2011-10-16 03:51:53 UTC
Some distributions, like Ubuntu, uses 0.9 as the version number for Plasma NM that works with NM-0.8, so probably knm-runtime being 0.9 is not conclusive.

Look in Manage Connections -> Other. There should be a version number there, if there is none than you are using Plasma NM for NM-0.8 and you should upgrade.
Comment 6 Lamarque V. Souza 2011-11-08 16:09:11 UTC
Plasma NM from branch nm09 does not use weppassphrase anymore. I still think this problem does not happen anymore.