Bug 129643

Summary: NetworkManager does not remember passphrase
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Martin Vidner <mvidner>
Component: NetworkAssignee: Robert Love <rml>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: network and hardware from /etc/sysconfig

Description Martin Vidner 2005-10-20 07:28:49 UTC
First, a description of my environment:
I have a  WEP encrypted network 'frogs' with the essid broadcast and there's 
also my neighbor's unencrypted network 'Tusarova'.
My laptop is 5 years old with 300MHz and 96M RAM so I installed only as little 
of GNOME as would get NM running. Some bugs may therefore come from dependencies 
that are needed but not yet expressed by rpm, please bear with me.
My WiFi card is
  Vendor: pci 0x1814 "RaLink"
  Device: pci 0x0201 "Ralink RT2500 802.11 Cardbus Reference Card"
  SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
  SubDevice: pci 0x107f 

I run icewm but manually start gnome-panel and nm-applet.
When I plug in the card, it connects to Tusarova after a little while. The meter 
to the right of the name stays empty despite the tooltip saying about 50%. Is 
that OK? [1]

The frogs item shows a lock+key icon and the meter is about 2/3. When I click 
it, it probably tries to connect but reverts to connecting to Tusarova.

Yesterday I somehow managed it to ask me for the passphrase. But it would not 
get a DHCP address and would ask for the passphrase again and again, despite 
'iwlist enc' showing that the keys were correct. I did not reproduce it today.

Then I select 'Connect to other wireless network', enter 'frogs' and the 
passphrase and it succeeds in getting a DHCP address. However, the terminal 
window says '** (nm-applet:5877): WARNING **: Error saving passphrase in 
keyring.  Ret=2'.
I don't know where it is supposed to save the passphrase and also don't know how 
gconf works, but there is no mention of the passphrase in ~/.gconf/system/
networking/wireless/networks/frogs/%gconf.xml

(I will continue the report from a machine other than the one on which I 
experiment with the network connecton...)
Comment 1 Martin Vidner 2005-10-20 07:32:57 UTC
Created attachment 54871 [details]
network and hardware from /etc/sysconfig

Here is /etc/sysconfig/{network,hardware}, with my actual WEP key replaced by DEADBEEF. There are lots of ifcfgs, and the one in use before NM was (or still is??) ifcfg-ra0.
Comment 2 Martin Vidner 2005-10-20 07:43:52 UTC
OK, after unplugging and replugging the card, I got asked for the frogs passphrase and the connection works. Good. Got the same warning about not being able to save it.
Comment 3 Robert Love 2005-10-27 20:47:28 UTC
The passphrase bug is because we require gnome-keyring.  Will add that to the package deps.
Comment 4 Robert Love 2005-10-27 20:51:35 UTC
Added Requires for gnome-keyring and submitted to autobuild.
Comment 5 Martin Vidner 2005-10-31 10:31:10 UTC
Thanks for pointing me in the right direction. Actually I have gnome-keyring installed and the dependency is there automatically:
kaname:~ # rpm --test -e gnome-keyring
error: Failed dependencies:
        libgnome-keyring.so.0 is needed by (installed) NetworkManager-gnome-0.4.1cvs20050901-2

So I probably need to run gnome-keyring-daemon. It would be nice if the applet told me to.