Commit Graph

3966 Commits

Author SHA1 Message Date
Dan Williams
5c3fe78d4b ifcfg-rh: fix writing TTLS-TLS connections and add testcases
Fixes memory leak where ifcfg structure wouldn't be closed on write error too.
2009-04-14 09:09:59 -04:00
Dan Williams
583dd00fc1 ifcfg-rh: use correct initial size for storing SSID 2009-04-14 09:09:54 -04:00
Dan Williams
2c4919ae84 libnm-util: allocate correct size for uuid 2009-04-14 09:09:48 -04:00
Dan Williams
bebe3e891b ifcfg-rh: fix read/write of EAP-TLS connections
TLS uses the 'identity' which previously wasn't read.  The private key
password should also only be used for PKCS#12 files, becuase they aren't
decrypted when read into the setting.

Private keys also need to be handled differently; PKCS#12 keys are written
out unchanged (ie, still encrypted) with their corresponding private key.
DER keys are stored in the setting unencrypted, so they are re-encrypted
before being written out to disk.  But because the private key password
isn't known for DER keys, a random password must be used to re-encrypt
the key.
2009-04-14 09:09:43 -04:00
Dan Williams
f4c1b422cf ifcfg-rh: fix writing multiple WPA & WPA ciphers 2009-04-14 09:09:37 -04:00
Dan Williams
8bbe884d0c ifcfg-rh: ensure certificates & private keys are mode 0600
g_file_set_contents() doesn't allow us to specify the mode, so roll
our own version.
2009-04-14 09:09:30 -04:00
Dan Williams
b564bfb5e2 ifcfg-rh: fix reading/writing PEAP and wired 802.1x connections 2009-04-14 09:09:25 -04:00
Dan Williams
6566900310 ifcfg-rh: add testcase for WPA2-PSK 2009-04-14 09:09:19 -04:00
Dan Williams
b6700bcb63 ifcfg-rh: fix reading of WPA allowed protocols 2009-04-14 09:09:13 -04:00
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