Commit Graph

202 Commits

Author SHA1 Message Date
Dan Williams
890866bef9 system-settings: clean up settings service classes
Make NMSettingsService implement most of the NMSettingsInterface
API to make subclasses simpler, and consolidate exporting of
NMExportedConnection subclasses in NMSettingsService instead of
in 3 places.  Make NMSysconfigSettings a subclass of
NMSettingsService and save a ton of code.
2009-08-10 23:25:11 -05:00
Dan Williams
f64354d0cc Merge commit 'origin/master' into polkit1
Conflicts:
	system-settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
2009-08-10 16:27:16 -05:00
Dan Williams
1d5a68db74 ifcfg-rh: read iBFT config and convert to NM IPv4 config 2009-08-07 12:13:54 -05:00
Dan Williams
e5347169f6 peap: add GTC as a recognized phase2 method (bgo #565065) (rh #451027) (lp #284211) 2009-07-29 14:08:54 -04:00
Dan Williams
0d69dfe39e libnm-glib: implement new settings interfaces
The old NMExportedConnection was used for both client and server-side classes,
which was a mistake and made the code very complicated to follow.  Additionally,
all PolicyKit operations were synchronous, and PK operations can block for a
long time (ie for user input) before returning, so they need to be async.  But
NMExportedConnection and NMSysconfigConnection didn't allow for async PK ops
at all.

Use this opportunity to clean up the mess and create GInterfaces that both
server and client objects implement, so that the connection editor and applet
can operate on generic objects like they did before (using the interfaces) but
can perform specific operations (like async PK verification of callers) depending
on whether they are local or remote or whatever.
2009-07-23 09:20:52 -04:00
Alexander Sack
57b8e0bf18 ifupdown: fix miscast due to udev conversion 2009-07-02 09:26:55 -04:00
Dan Williams
c9067d8fed everything: use libgudev instead of HAL; merge NM and nm-system-settings
The only thing that doesn't work yet is the system-settings service's
"auto eth" connections for ethernet devices that don't have an existing
connection.  Might also have issues with unmanaged devices that can't
provide a MAC address until they are brought up, but we'll see.
2009-06-11 00:39:12 -04:00
Dan Williams
0408c149b5 system-settings: kill usage of sha1 since NM can handle passphrases now
Plugins no longer need to hash WPA passphrases, so there's no need to keep
sha1 stuff around unless its for hasing other stuff (ifcfg-rh uses sha1
for certificate hashing for example, but has a private copy).
2009-06-05 22:09:39 -04:00
Pablo Martí
6029288ffb libnm-util:keyfile: typo fixes 2009-06-03 09:27:44 -04:00
Michael Biebl
ae44aa59d1 Remove NULL in Makefile.am
Be consistent and don't use NULL, it's not defined anyway.
2009-05-02 18:01:20 -04:00
Dan Williams
b87c5495ea core: don't shadow basename (2) 2009-04-21 18:29:44 -04:00
Dan Williams
641af69086 ifcfg-rh: don't shadow basename 2009-04-21 18:23:07 -04:00
Dan Williams
42b4d04fe1 ifcfg-rh: don't check PolicyKit when on-disk ifcfg file changes (rh #495884)
The plugin called nm_exported_connection_update() which ended up checking
PolicyKit for authorization to update the connection, which of course fails
completely when it's just an inotify-triggered update.  inotify-triggered
updates don't need authorization because they require root access anyway.
2009-04-17 07:02:19 -04:00
Dan Williams
80bb28eff2 ifcfg-rh: fix printf format of guint64 2009-04-14 18:47:46 -04:00
Dan Williams
5f76b1d480 ifcfg-rh: fix distcheck
distcheck's source dir is read-only, need to use the actual build dir
for temp stuff.
2009-04-14 18:12:07 -04:00
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
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
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
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
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
c2c0a4e4e0 keyfile: fix chmod() error checking 2009-03-27 16:52:08 -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
dc54f52fb5 ifcfg-rh: treat lack of ONBOOT as autoconnect=true (rh #489422) 2009-03-10 10:25:53 -04:00
Alexander Sack
1bb029c395 ifupdown: fix mapping for 'password', 'identity', and 'key' 2009-03-03 12:58:33 -05:00
Alexander Sack
a36d57d2c1 ifupdown: handle previously unsupported format for wifi keys (debian #513874) 2009-03-03 12:56:44 -05:00