Do I need to use Kwallet for wireless encryption key to work in openSUSE11.3 KDE?

Hi,

After re-installing openSUSE 11.3 KDE 64-bit in my desktop PC, I found that I cannot connect wirelessly. My wireless adapter is Trendnet TEW-642PI and has rt2860 driver enabled.

Following is what the terminal shows:


/usr/sbin/iwlist scan

lo        Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 00:1F:33:B4:E1:D8
                    Protocol:802.11b/g/n
                    ESSID:"snynhatrang"
                    Mode:Managed
                    Channel:1
                    Quality:100/100  Signal level:-39 dBm  Noise level:-87 dBm
                    Encryption key:on
                    Bit Rates:135 Mb/s
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK

eth0      Interface doesn't support scanning (Cable unplugged).


linux-z5dj:~ # /usr/sbin/iwconfig wlan0 | grep Mb
          Bit Rate=1 Mb/s   

linux-z5dj:~ # /usr/sbin/iwconfig

lo        no wireless extensions.

wlan0     Ralink STA  ESSID:""  Nickname:"RT2860STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: 00:1F:33:B4:E1:D8   
          Bit Rate=1 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=10/100  Signal level:-17 dBm  Noise level:-87 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

It is strange that iwconfig shows no SSID, 1 Mb/sec and encryption key is OFF which is contrary to those in iwlist scan output, so I suspect there are problems with authentication. When setting up the card in YAST, I did enter the correct WPA2 passphrase. I am wondering if I should use Kwallet to store this passphrase. If so, how should I configure it so wireless will work?

Secondly, after installing rfkill:


/usr/sbin/rfkill list

Can't open RFKILL control device.  No such file or directory.

By the way, I can ping my router without any packet loss.
I would appreciate your help and suggestions.

Manage wireless with networkmanager and Yes you must use kwallet to store passwords

Hello caf4926,

I opened kwalletmanager, configured “wireless” (sub?)wallet, gave it a password, went to KNetworkManager and gave the correct passphrase in the Security tab of the wireless connection. After reboot, I kept seeing KNetworkManager window asking for the secrets of the SSID name. I gave this window the same passphrase but the window keeps coming back asking for the secret words. Then when the window returns the last time I gave it the password of the subwallet, still no go! I am going nut!

Can you help me sort this out? Thanks a lot!

Trying to figure out what someone is saying can be tricky can’t it :smiley:

Let me explain how it goes for me as of a new install, assuming wireless is operational, from login:

Going to NetworkManager to setup the new wireless connection > Enter the connection details and connect auto and the password for my WPA2…
When you apply this, kwallet will start up
Do you want kwallet to manage passwords = yes
You enter a password for kwallet access
kwallet will ask about the network password and remembering it = for me I choose always

I think that’s it
But at login you will need to enter the kwallet password (not the network passphrase) to allow the wireless to activate

Hello caf4926,

I want to re-run Kwallet on a clean slate, because I suspect it is corrupted. How do I delete its profile, cache, old passwords, old settings and any other hidden data, before un-installing then re-installing it?

Thanks a lot for your help.

Delete folder:
.kde4/share/apps/kwallet

Delete file:
.kde4/share/config/kwalletmanagerrc
.kde4/share/config/kwalletrc

Just out of curiousity, what does Gnome use to store the wireless key? I don’t have to enter any password (besides my user login credentials) to connect to wireless, the way it should be, IMO.

Gnome keyring
Info at: .gnome2/keyrings

I think

See: GNOME Keyring - openSUSE wiki
with

== External links: ==

But I still would love if someone would be able to write some good and easy understandable what-is or even more some good SDB/how-to-use articles (for use in openSUSE) on this hole password manager issue :wink:

Regards
Martin
(pistazienfresser)

Hello caf4926,

Sorry for not being able to get back to you sooner. Up until recently, I use ifup (YAST) to set up network connections. So today I deleted wireless connection there, switched to Global Options = Network Manager (otherwise the Wireless Security tab in the next part gets greyed out) then Configure Desktop > Network to set up wireless connection > Apply > Ok. However, kwallet did not start up until after I rebooted and logged in. I was not asked to give permission to kwallet to manage password. Then entered a password for kwallet access. Again, kwallet did not ask me about network management password.

In any case, I hit ALT F2 and typed kwalletmanager. Clicked on the wallet icon in the system bar to open it. KDE Wallet Manager window opens showing 3 folders: Form Data (0), Network Management (4) and Passwords(0). These last 2 folders each has 4 sub-folders: Binary, Maps, Passwords and Unknown. According to Chapter 8: “Managing Passwords with KWallet Manager”, a map refer to a key pair which in my understanding means SSID and PSK passphrase. On my PC, Maps show 2 mostly identical entries: (b7ca…) with the top one has psk and a value showing my passphrase, whereas the second one has 1xpassword and a blank value column.

After reboot again, Kwallet Manager asked for its access password. After I gave the wallet password, a window shows up with "secrets of (SSID), passphrase xxxx. I hit OK. After afew seconds, this window appear a few times.

So I guess Kwallet has not been properly configured. Do I need to configure both Maps and Passwords under Network Management, or only one: Maps or Passwords.

Under Access Control tab in KDEWallet Configuration, I saw3 items:

Wallet: KDE Wallet
Application: KDE Control Module, KDE Wallet Manager
Policy: Always allow

I would appreciate your suggestions. Thanks a lot for your help.

That all sounds rather convoluted to me.
Did you delete all the wallet settings and start fresh?

Folder: .kde4/share/apps/kwallet
Files: .kde4/share/config/kwalletmanagerrc + .kde4/share/config/kwalletrc

Reboot.

If your wireless is set to connect automatically or when you click to make the connection, kwallet should start as if for the first time.
Enter the master password for kwallet
Let it manage the passphrase for the wireless connection > always

That’s it.
Each time you login, you only enter the kwallet master password.

Hello caf4926,

I deleted the kwallet folder and the 2 files as you suggested, then set up wireless connection and kwallet password, etc. exactly and to the letter as you suggested. However, after reboot and entering kwallet password to connect with Network Manager, wireless connection window keeps asking for WPA2 passphrase. After hitting OK, the screen shows wireless connection being created, then after a while NO CONNECTION. Power cycling the router makes no difference. I heard that Network Manager can handle up to 128-bit passphrase. I don’t know if my 50-character passphrase exceeds this 128-bit limit. There are no wireless connection problem in Windows 7, Ubuntu 10.10 Gnome or Fedora Core14 Gnome in the same machine, same wireless adapter.

This is quite strange. Could You try following the NetworkManager log during the process of trying to connect ? You can do this with this command :

sudo tail -f /var/log/NetworkManager

Best regards,
Greg

So the wallet sounds OK
You need to work on the network manager
Did you try the plasmoid-networkmanager instead? Some find it better. Either works OK for me though.
My WPA2 password is way smaller but complex.

On a side note: I was fiddling with a new install the other day and accidentally connected to a neighbours router, it had no security in place and the router admin was factory default :smiley:
I was kind and left it be

Hello caf4926 & glistwan,

I did install plasmoid-networkmanagement but as I accepted it, KDE4.4.4 removed KNetworkManager. Wireless did not work with plasmoid-networkmanagement so I re-installed KNetworkManager.

Here’s the output of…


sudo tail -f /var/log/NetworkManager

as I was trying to connect wirelessly with KNetworkManager:

# tail -f /var/log/NetworkManager
Feb 10 22:03:28 linux-z5dj NetworkManager: <info>  (wlan0): bringing up device.
Feb 10 22:03:28 linux-z5dj NetworkManager: <info>  (wlan0): preparing device.
Feb 10 22:03:28 linux-z5dj NetworkManager: <info>  (wlan0): deactivating device (reason: 2).
Feb 10 22:03:28 linux-z5dj NetworkManager: supplicant_interface_acquire: assertion `mgr_state == NM_SUPPLICANT_MANAGER_STATE_IDLE' failed
Feb 10 22:03:28 linux-z5dj NetworkManager: &lt;WARN&gt;  default_adapter_cb(): bluez error getting default adapter: The name org.bluez was not provided by any .service files
Feb 10 22:03:28 linux-z5dj NetworkManager: &lt;info&gt;  modem-manager is now available
Feb 10 22:03:28 linux-z5dj NetworkManager: &lt;info&gt;  Trying to start the supplicant...
Feb 10 22:03:28 linux-z5dj NetworkManager: &lt;info&gt;  (wlan0): supplicant manager state:  down -&gt; idle
Feb 10 22:03:28 linux-z5dj NetworkManager: &lt;info&gt;  (wlan0): device state change: 2 -&gt; 3 (reason 0)
Feb 10 22:03:28 linux-z5dj NetworkManager: &lt;info&gt;  (wlan0): supplicant interface state:  starting -&gt; ready

I also noted that right after rebooting and going to NM, the wireless connection screen or window shows “Restricted to interface=802.11 wireless” instead of “…wlan0”

Has this device worked properly before in opneSUSE?
If not I suggest you start a new thread about the wireless device
Post the output of: /sbin/lspci -nnk

You could link to this thread too
Because I now suspect we may be tackling the wrong issue.
HCL:Network (Wireless) - openSUSE