Commit Graph

4007 Commits

Author SHA1 Message Date
Dan Williams
f3f1ee18d4 libnm-util: fix array transforms when arrays are NULL 2009-04-14 09:09:07 -04:00
Dan Williams
0ee2250583 ifcfg-rh: test and fix up wifi WEP connection writing 2009-04-14 09:09:01 -04:00
Dan Williams
e3a309d694 ifcfg-rh: remove temp ifcfg file 2009-04-14 09:08:54 -04:00
Dan Williams
ecb8a0658c ifcfg-rh: don't free unused array if wifi no HWADDR 2009-04-14 09:08:49 -04:00
Dan Williams
f40d502492 ifcfg-rh: don't write LAST_CONNECT if it's 0 2009-04-14 09:08:44 -04:00
Dan Williams
5ebed3ebfa ifcfg-rh: fix wifi channel and MTU read/write 2009-04-14 09:08:38 -04:00
Dan Williams
fa72dc27e0 libnm-util: add transform for byte arrays; fix IP4 address transform for prefix 2009-04-14 09:08:33 -04:00
Dan Williams
c6fe990ba4 ifcfg-rh: fix dhcp-client-id 2009-04-14 09:08:27 -04:00
Dan Williams
13c5e660de ifcfg-rh: read multiple IP addresses, more DNS servers, write more IP4 stuff
Add a simple testcase for write too.
2009-04-14 09:08:20 -04:00
Dan Williams
44964d3b5e ifcfg-rh: initial write support for wifi & wired 2009-04-14 09:08:14 -04:00
Dan Williams
1974b257e0 ifcfg-rh: begin adding write support 2009-04-14 09:08:08 -04:00
Dan Williams
865163d041 ifcfg-rh: add tests for Dynamic WEP + TTLS + CHAP 2009-04-14 09:08:03 -04:00
Dan Williams
91e946718b ifcfg-rh: add WPA EAP-TTLS + TLS testcase & fixes 2009-04-14 09:07:57 -04:00
Dan Williams
f2e186bccd ifcfg-rh: add testcases for WPA-EAP TLS connections 2009-04-14 09:07:46 -04:00
Dan Williams
e53c04091d ifcfg-rh: fix loading TLS private keys and WPA-EAP key management 2009-04-14 09:07:37 -04:00
Dan Williams
1535031f97 ifcfg-rh: add testcases for wired PEAP/MSCHAPV2 connections 2009-04-14 09:07:27 -04:00
Dan Williams
f72319b515 ifcfg-rh: fix bugs parsing 802.1x connections 2009-04-14 09:07:17 -04:00
Dan Williams
e6e9e612d7 ifcfg-rh: read wired 802.1x connections 2009-04-14 09:07:11 -04:00
Dan Williams
fdbc72905a ifcfg-rh: read TTLS connections 2009-04-14 09:07:06 -04:00
Dan Williams
e7214b4998 ifcfg-rh: read PEAP connections
And a ton of refactoring to help handle TTLS.
2009-04-14 09:07:00 -04:00
Dan Williams
6d0cdf172e ifcfg-rh: parse eap methods 2009-04-14 09:06:51 -04:00
Dan Williams
e5146b8f82 core: fix case of unmanaged device being managed at startup (rh #494527)
device_start() would unconditionally transition the device to UNAVAILABLE
no matter what the initial managed setting was.  There was a short window
for a race with HAL where device_start() wouldn't get canceled if HAL
was starting up in parallel with NetworkManager.
2009-04-11 08:10:55 -04:00
Michael Biebl
85baf9ace8 core: remove duplicated configure option 2009-04-09 10:34:38 -04:00
Dan Williams
b3932d21a7 modem: send network mode preference to MM when connecting 2009-04-09 07:37:53 -04:00
Dan Williams
9885de6bdb dhcp: handle escaped spaces in 'domain search' option (bgo #575145) 2009-04-08 21:03:43 -04:00
Dan Williams
0b7517ffa0 core: ignore DHCP-sent MTUs less than 577 (lp #352779)
MTUs less than 577 are not legal and the DHCP server is just being
stupid.  Punch stupidity in the face.
2009-04-07 15:19:30 -04:00
Tobias Mueller
ba9a0ad232 core: update FSF address (bgo #577949) 2009-04-07 07:49:49 -04:00
Dan Williams
a0e635f455 ifupdown: inherit from NMSysconfigConnection to get PolicyKit authorization 2009-04-04 16:37:47 -04:00
Dan Williams
8baebe2a47 ifcfg-rh: remove leftover debugging stuff from cea2885aa733ef86d0889e478886d410f9f95a98 2009-04-04 11:42:56 -04:00
Dan Williams
63f2c0bfbe system-settings: protect system connection secrets with PolicyKit
So that normal users who have PolicyKit authorization to edit system connections
can read secrets, move system connection secrets logic into the system connection
service from libnm-glib, and protect it with PolicyKit checks.  Convert the
ifcfg-rh plugin over to using NMSysconfigConnection so that it can take advantage
of the new PolicyKit protection.
2009-04-04 11:42:48 -04:00
Dan Williams
67ffcfab11 core: fix crash when NameHasOwner fails but dbus-glib doesn't set an error (lp #352400) 2009-04-01 07:20:16 -04:00
Dan Williams
a240e6549b core: ensure device is removed from the device list before signaling its removal
Might fix lp#319918
2009-03-31 13:10:00 -04:00
Dan Williams
ccb84b15d5 libnm-util: fix use-after-free when updating setting secrets 2009-03-31 13:08:07 -04:00
Dan Williams
583427ee36 libnm-util: fix client certificate values after setting private key
The client certificate should only match the private key for PKCS#12.
2009-03-31 08:37:37 -04:00
Dan Williams
c2c0a4e4e0 keyfile: fix chmod() error checking 2009-03-27 16:52:08 -04:00
Dan Williams
c4a1c49539 libnm-util: don't lowercase LEAP username 2009-03-26 16:58:33 -04:00
Dan Williams
f0e3bf658e core: don't schedule same activation stage multiple times
Fix issues with crappy wifi drivers which send a stream of associate
events before NM can schedule the next activation stage, which actually
scheduled *multiple* next stages.  Only allow one stage to be scheduled at
at time, and don't schedule the same stage again if it's already next up
to the plate.
2009-03-23 17:39:34 -04:00
Dan Williams
3da47fd00f ifcfg-rh: don't reverse lookup on 'localhost' unless NM_IGNORE_HOSTNAME_LOCALHOST=yes (rh #490184) 2009-03-23 16:43:25 -04:00
Dan Williams
31539034b3 core: fix segfault when device's IP4Config object isn't ready (rh #491620) 2009-03-23 14:38:33 -04:00
Tambet Ingo
41bc6e167b Implement sending current host name to DHCP server. 2009-03-20 14:44:49 +02:00
Tambet Ingo
8c38b30a3c Update .gitignore to make status command useful again. 2009-03-16 11:41:14 +02:00
Tambet Ingo
9742b46122 Fix the DHCP lease directory location for suse. 2009-03-16 11:17:34 +02:00
Tambet Ingo
b41f612c73 Don't spam the log if modem-manager is not installed. 2009-03-16 10:46:21 +02:00
Tambet Ingo
cd36c9d1cf Updated Lithuanian translations (from Gintautas Miliauskas <gintautas@miliauskas.lt>). 2009-03-16 09:18:45 +02:00
Dan Williams
dc54f52fb5 ifcfg-rh: treat lack of ONBOOT as autoconnect=true (rh #489422) 2009-03-10 10:25:53 -04:00
Drew Moseley
ee3286c870 core: fix use-after-free caused by incorrect HAL device resync code 2009-03-06 17:20:30 -05:00
Dan Williams
dc09f62e2e wifi: fix AP flags for user-created Ad-Hoc and hidden Infrastructure networks
Fake APs created in nm_ap_new_fake_from_connection() didn't get the
right flags due to wrong interpretation of # WPA protos; no protos really
means "all ciphers".  Thus the applet wouldn't ask for the right type of
security info if the connection failed; for hidden WPA networks, the applet
would instead ask for WEP keys.

Clean up addition of flags for 'fake' WPA APs in general; pairwise
shouldn't ever include WEP ciphers, and if the connection didn't
include any pairwise or group ciphers, default to "all" as is
expected.  Also fix flags for WPA Ad-Hoc networks, since they have
special limitations imposed by the supplicant and drivers.
2009-03-04 17:18:33 -05:00
Dan Williams
c59eb16817 wifi: remove user-created Ad-Hoc APs from the scan list when no longer used (bgo #569241)
The first fix didn't cover creating a new adhoc network while already joined
to an existing adhoc network; thus clearing the 'fake' flag wouldn't necessarily
drop the old adhoc network from the scan list, because NM doesn't scan in adhoc
mode, and thus the scan list culling function wouldn't run.

Even if the AP being removed isn't adhoc, it was never found from a scan anyway
(if it had, the fake flag would have been reset) and thus we don't care about
it anymore.
2009-03-04 17:18:28 -05:00
Dan Williams
d5bbd6dd49 libnm-util: fix WPA Ad-Hoc capability matching
Drivers won't necessarily add the "PSK" flag to the beacon for Ad-Hoc
APs, which is fine because PSK is the only type of security that Ad-Hoc
can do.
2009-03-04 17:18:24 -05:00
Dan Williams
9e0ebf36ac wifi: ensure user-created Ad-Hoc APs disappear when no longer used (bgo #569241)
Since NM doesn't scan while associated with an Ad-Hoc BSS (since
scanning in adhoc mode makes most driver quite angry and doesn't
work well anyway) the user-created BSS was never found in the scan
list, and the 'fake' flag wasn't cleared.  Thus the BSS stuck
around in NM's scan list forever.

Additionally, ensure that set_current_ap() maintains a reference
to the old AP until after setting the new AP, just in case the same
AP is being set again.

Third, handle IBSS coalescing by always updating the current AP's
address (if it's an Ad-Hoc AP) with the BSSID reported by the card.
The joined Ad-Hoc networks' BSSID will change if the card
coalesces with other stations in the same IBSS, which would make
NM fail to find the currently joined network in the scan list, and
lead to "roamed to (none)" messages and inability to find the
current AP.
2009-03-04 09:03:17 -05:00