Bug 178210 - NetworkManager doesn't authenticate with WPA
Summary: NetworkManager doesn't authenticate with WPA
Status: VERIFIED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Robert Love
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 22:04 UTC by Michal Svec
Modified: 2006-06-02 16:01 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
/var/log/NetworkManager (300.16 KB, text/plain)
2006-05-23 22:05 UTC, Michal Svec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Svec 2006-05-23 22:04:13 UTC
I'm trying to connect to WLAN router configured with WPA and passphraze. NetworkManager detects the network, but does not authenticate. Using plain wpa_supplicant directly works without problems.

I have bcm43xx, I use ndiswrapper, KDE UI.
This is my functional wpa_supplicant.conf:
    ctrl_interface=/var/run/wpa_supplicant
    network={
        ssid="Rebel"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="********"
    }

Successful run:
  bash# wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf
  Trying to associate with 00:11:d8:ea:ee:b4 (SSID='Rebel' freq=2437 MHz)
  Associated with 00:11:d8:ea:ee:b4
  WPA: Key negotiation completed with 00:11:d8:ea:ee:b4 [PTK=TKIP GTK=TKIP]
  CTRL-EVENT-CONNECTED - Connection to 00:11:d8:ea:ee:b4 completed (auth)

After that just dhcpcd wlan0 and I'm running over that right now.
Comment 1 Michal Svec 2006-05-23 22:05:20 UTC
Created attachment 84874 [details]
/var/log/NetworkManager

NM log file, any further info needed?
Comment 2 Michal Svec 2006-05-23 22:07:37 UTC
BTW in the course of testing NM died with this message in the log:
NetworkManager: file nm-device-802-11-wireless.c: line 1985 (ap_need_key): assertion failed: (security)

Everything is in the attached log, is it worth a separate report?
Comment 3 Robert Love 2006-05-23 22:12:19 UTC
Michal: Is your accesspoint (Rebel) hidden?

jg: Association is timing out, card is a broadcom.  I thought we fixed these with the ndiswrapper version bump.  Is this configuration supported?
Comment 4 Michal Svec 2006-05-23 22:15:17 UTC
AP is not hidden, it broadcasts its essid if you mean that.

It's on stock SL10.1 btw:
  ndiswrapper-1.10-19
  wpa_supplicant-0.4.8-14
  NetworkManager-0.6.2-23
  NetworkManager-kde-0.1r534534-4
Comment 5 Michal Svec 2006-05-23 22:18:39 UTC
I don't think anything related to ndiswrapper is supported at all, it's simply a binary only crap, just bcm43xx is so common unfortunately :-(

Anyways, the point is that it works with a plain wpa_supplicant, but not with wpa_supplicant which is run from NM. So there must be something strange in between.
Comment 6 Joachim Gleissner 2006-05-24 08:48:53 UTC
You are using WPA-PSK, that means you need to specify the ciphers to use in that case. Would be a good idea if NetworkManaged forced the user to select a ciphe when it is going to use AP_SCAN 2. In that particular case (b'casted SSID) AP_SCAN 2 shouldn't be necessary (that's why your manual wpa_supplicant run worked), but that's another story.
Comment 7 Michal Svec 2006-05-24 08:57:25 UTC
Sorry, but I don't consider this as working. Either NM has to ask for a cipher or (preferably) shouldn't require AP_SCAN 2 whatever it is.
Comment 8 Robert Love 2006-05-24 18:10:09 UTC
jg: Could we get away with using "AP_SCAN 2" only if the network is not broadcasting?
Comment 9 Joachim Gleissner 2006-05-24 21:46:38 UTC
In that case, yes, this should do the trick. However, if the use of AP_SCAN 2 is unavoidable, it would be still a good idea imho to let the user choose the ciphers, and maybe explain why, but I guess that's something for 10.2 resp. SP1.
Comment 10 Robert Love 2006-05-24 21:49:19 UTC
jg: So you are confirming that changing the logic from

   if ndiswrapper then use "AP_SCAN 2"

to

   if ndiswrapper && hidden then use "AP_SCAN 2"

is should be okay?  I'll commit it.

Also - we do let the user select the cipher, but when selecting from the scan list we obviously go with automatic.  When doing a manual connect, the user can select TKIP, CCMP, or Automatic.
Comment 11 Joachim Gleissner 2006-05-24 22:16:07 UTC
Yes, the change should be safe.
Comment 12 Robert Love 2006-05-24 23:30:41 UTC
Great, I'll make the change, test, and submit.
Comment 13 Michal Svec 2006-05-25 08:35:14 UTC
Perfect, thanks. You could let me know when an updated package is ready, I'd give it a try.
Comment 14 Robert Love 2006-05-25 14:58:51 UTC
Submitted to autobuild.

Michal, packages for SLES10 are available here:

        http://primates.ximian.com/~rml/misc/NetworkManager/

Sorry, I don't have a 10.1 machine on which to build.

These fix the problem, as now NM can automatically determine the cipher type.
Comment 15 Robert Love 2006-05-25 19:30:11 UTC
*** Bug 164394 has been marked as a duplicate of this bug. ***
Comment 16 Robert Love 2006-05-28 15:55:31 UTC
Submitted.  Marking as FIXED.
Comment 17 Michal Svec 2006-05-29 08:59:18 UTC
I will test it, thanks. I suppose it doesn't need NetworkManager-kde update.
Comment 19 Michal Svec 2006-06-02 16:01:57 UTC
Works OK now, thanks.