GNOME Bugzilla – Bug 411039
Manual connection to WPA2 enterprise network always prompts for password
Last modified: 2007-02-23 17:31:24 UTC
I regularly use a wireless network with WPA2 enterprise security. When I start NM from scratch or come out of sleep, it connects with no problems. But if I try to connect manually, it always asks for a password. This is because when NM asks nm-applet for a network key, nm-applet looks for the password in the keyring. However, 802.1x passwords are not stored in the keyring, so the lookup fails and nm-applet prompts the user.
Created attachment 83141 [details] [review] patch v1 Workaround: if the applet is asked for a key when 802.1x is in use, don't look in the keyring, but just return the security info object from gconf if there is one. The proper fix would be to store all this information in the keyring, but since 0.6.x is a maintenance branch I assume most of this code is going to go away anyway and a low-impact workaround is preferable. (Note that I have SVN access, so I can check this in if necessary.)
P.S. The change to the if statement was made because checking if(new_key) is redundant in the else branch of if(!new_key)
Looks good, feel free to commit and close.
Created attachment 83178 [details] [review] patch checked in Checked in. This was the patch I actually checked in (the previous one was using escaped_network after it was had been freed, although that was not visible in the diff).