Commit Graph

15047 Commits

Author SHA1 Message Date
Dan Williams
718debc2cd fix distcheck for real 2009-02-02 01:36:43 -05:00
Dan Williams
203cff4d83 libnm-util: move crypto tests to libnm-util/tests/
Add testing certs and keys; run crypto tests on 'make check'
2009-02-02 01:03:15 -05:00
Dan Williams
b61b199776 libnm-util: flag properties with G_PARAM_CONSTRUCT so default values get set
This caused the 'autoconnect' property of NMSettingConnection to not
get updated in some cases (as when a system setting plugin noticed a
change to autoconnect=true and emitted the Updated signal, which wouldn't
contain the new value).  Add a testcase for setting default values too.
2009-02-01 20:18:21 -05:00
Michael Biebl
8a2393ade2 vpn: ignore VPN service files that don't end in .name 2009-01-30 00:00:12 -05:00
Dan Williams
0e6c557bce ppp: fix interpretation of 'noauth' and default to TRUE
MPPE has nothing to do with noauth, since auth/noauth is for asking
the remote server to authenticate itself to the local pppd, which is
pointless.  Default 'noauth' to true.
2009-01-28 11:53:16 -05:00
Dan Williams
468ca67a1f ppp: always use 'noauth'
Since NM is really only a client of the provider's PPP server, and since NM
doesn't have any authentication information to authenticate the remote
peer anyway.  Some providers don't set up their servers to allow clients to
ask for authentication from the remote peer either.
2009-01-28 11:49:28 -05:00
Dan Williams
154f2f4534 libnm-util: default 'autoconnect' to true
Like the NetworkManagerConfigurationSpecification wiki page has stated for
quite a long time.
2009-01-27 11:31:21 -05:00
Dan Williams
4a7bfefeec ppp: honor MTU from PPP setting 2009-01-26 16:10:19 -05:00
Dan Williams
8a1e437eca spec: clarify behavior of Update() 2009-01-26 11:22:11 -05:00
Dan Williams
d7e671ddad make distcheck happier (but still not completely happy) 2009-01-22 19:38:53 -05:00
Dan Williams
fbb20f04ad ifcfg-rh: help prevent rh#476089 in the future 2009-01-22 19:38:19 -05:00
Przemysław Grzegorczyk
bac45aa0d5 clean up glib includes (bgo #564376)
Only <glib.h> and <gtk/gtk.h> need to be included.
2009-01-19 00:16:40 -05:00
Dan Williams
f2e8870338 dhcp: handle classless static routes (bgo #567246)
Based on patches by Johan Bilien <jobi@via.ecp.fr>,
nick loeve <trickie@gmail.com>, and Roy Marples <roy@marples.name>
with significant changes for dhclient formatting and test cases.

Note that dhclient needs help before it can actually parse
classless static routes by adding the following to the
dhclient.conf file:

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
2009-01-18 23:19:09 -05:00
Dan Williams
f06a136a99 move nm_utils_ip4_addr_to_nl_addr() to nm-ip4-config.c
Since that's the only place it's used.
2009-01-18 20:04:14 -05:00
Dan Williams
59bc300cee move test functions somewhere commonly accessible 2009-01-18 18:43:18 -05:00
Dan Williams
4aab9ff556 gsm: add init string for USBModem by MobileStream for Palm devices 2009-01-16 16:41:54 -05:00
Sjoerd Simons
c96333de17 gsm: handle different modem init sequences more elegantly
Change the encoding on the channel to binary too, since modems usually don't
send UTF-8.
2009-01-16 16:40:59 -05:00
Simos Xenitellis
94575f511d Updated greek translation (bgo #566372) 2009-01-16 16:28:52 -05:00
Dan Williams
e207a458c4 keyfile: read & write nicely formatted BSSIDs 2009-01-13 13:04:24 -05:00
Dan Williams
07d3ffbcec keyfile: write nicely formatted MAC addresses; clean up "special" key handling
Add testcases for keyfile ip4-config setting writing too.
2009-01-12 18:23:30 -05:00
Dan Williams
45f2f1144d keyfile: read MAC addresses and a test framework
Clean up handling of "special" keys in keyfiles, ie ones that
need more processing than the basic GKeyFile API supports.  Add
MAC address reading (writing support to come).

Additionally, add some test bits for the keyfile plugin that get
run on 'make check'.
2009-01-12 14:21:44 -05:00
Dan Williams
0400af7d03 Clarify variable name 2009-01-12 10:44:00 -05:00
Dan Williams
6bd0fce1c9 libnm-util: validate PSK and LEAP passwords
If they exist, they shouldn't be zero-length.
2009-01-12 10:31:00 -05:00
Chuck Anderson
3d81c82e58 ifcfg-rh: fix IP4 address fallbacks
Previous code forgot to clear a temporary variable when reading IPv4
addresses from ifcfg files, and when the value being read wasn't in the
ifcfg file, it could set wrong values in the connection for that variable
even though it didn't exist.
2009-01-08 12:51:13 -05:00
Dan Williams
a10775c928 Merge branch wins-in-ip4-config 2009-01-04 19:15:03 -05:00
Jan Kantert
4ca66db721 Use g_timeout_add_seconds() to reduce wakeups
(and refine the older glib compat mechanism, by Dan)
2008-12-31 18:57:36 -05:00
Dan Williams
64af880fd7 Remove outdated examples 2008-12-20 09:48:02 -05:00
Dan Williams
3f907cb9e3 License header and FSF address update 2008-12-20 09:46:41 -05:00
Michael Biebl
c733dbf6d0 Remove .cvsignore file, they are obsolete 2008-12-19 21:23:08 -05:00
Dan Williams
80686bc181 [libnm-glib] Deprecate the NMIP4Config 'hostname' property
NM doesn't implement it, but we forgot about it for 0.7 and now we
have to live with it, so just deprecate it and make it return NULL.
2008-12-19 21:19:09 -05:00
Dan Williams
a020ed21da Re-add WINS support to the IPv4 config
Don't do anything with WINS servers (dispatcher scripts installed with
samba could certainly update samba's idea of WINS servers), but at least
provide them so that the VPNs that can get upstream WINS servers can
at least make other stuff aware of them.
2008-12-19 17:01:06 -05:00
Dan Williams
706118b9db Use correct dhclient leasefile location for Debian systems
Patch by Michael Biebl <mbiebl@debian.org>
2008-12-16 15:24:38 -05:00
Dan Williams
3c4f3b69c6 Remove VPN daemons
They each have their own repos on svn.gnome.org now.
2008-12-16 14:51:21 -05:00
Dan Williams
62fdb8b6de 2008-12-11 Dan Williams <dcbw@redhat.com>
* Move NetworkManager to git.freedesktop.org
		- git clone git://git.freedesktop.org/git/NetworkManager/NetworkManager.git



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4380 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-11 20:05:07 +00:00
Dan Williams
948ee274da 2008-12-09 Dan Williams <dcbw@redhat.com>
* libnm-util/libnm-util.ver
	  libnm-util/nm-setting-ip4-config.c
	  libnm-util/nm-setting-ip4-config.h
		- Add 'never-default' property, which when true indicates that a
			connection should never be the default connection

	* src/nm-ip4-config.c
	  src/nm-ip4-config.h
		- (nm_ip4_config_get_never_default, nm_ip4_config_set_never_default):
			Add never-default helpers

	* src/NetworkManagerUtils.c
		- (nm_utils_merge_ip4_config): update never-default when merging the
			IP4 setting to the IP4 config

	* src/NetworkManagerSystem.c
		- (nm_system_apply_ip4_config): if the connection is never-default,
			don't add routes without a gateway

	* src/NetworkManagerPolicy.c
		- (get_best_device): don't let never-default connections be the best
		- (update_routing_and_dns): handle never-default for VPN connections

	* system-settings/plugins/ifcfg-rh/reader.c
		- (make_ip4_setting): handle never-default by checking GATEWAYDEV



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4378 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-09 20:01:49 +00:00
Dan Williams
54d49012b1 Update wireless-tools message to be more informative
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4377 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-09 19:47:39 +00:00
Dan Williams
6bfade3227 2008-12-08 Dan Williams <dcbw@redhat.com>
* src/vpn-manager/nm-vpn-connection.c
		- (plugin_state_changed): clear secrets before setting the connection
			state to FAILED, since doing so may destroy the connection itself,
			since the NMVPNService owning this NMVPNConnection will unref it
			when the NMVPNConnection is failed or stopped



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4374 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-08 15:24:38 +00:00
Dan Williams
01167a8e33 Update translations from trunk
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4372 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-08 15:18:02 +00:00
Dan Williams
cceead5567 2008-12-05 Dan Williams <dcbw@redhat.com>
* auth-dialog/gnome-two-password-dialog.c
	  auth-dialog/gnome-two-password-dialog.h
		- Simplify to only what the VPN plugin actually needs

	* auth-dialog/main.c
		- (find_connection_path): split out into separate function
		- (get_secrets): be more intelligent about requesting password when
			the password type cannot be found in the VPN details; use new VPN
			password dialog stuff
		- (get_connection_info): rename from get_password_types(); get
			connection name too
		- (main): don't require a connection name too; it's pointless

	* properties/nm-vpnc.c
		- (init_one_pw_combo): if the password was found, but the password type
			wasn't, default to saving the password in the keyring.  Otherwise
			if both the type and the password couldn't be found, default to
			always asking for it.
		- (init_plugin_ui): get VPN passwords before setting up the type combos



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4367 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-06 00:21:05 +00:00
Dan Williams
ffdd6e2948 2008-12-05 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl  <mbiebl@gmail.com>

	* libnm-glib/Makefile.am
		- Bump libnm-glib revision to indicate new API
		- Give libnm-util version info

	* libnm-util/Makefile.am
		- Bump libnm-util soname to indicate API/ABI break with 0.6



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4365 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-05 21:46:40 +00:00
Mario Blättermann
d187c0e414 2008-12-05 Mario Blättermann <mariobl@svn.gnome.org>
* de.po: Updated German translation

2008-11-29  Ilkka Tuohela <hile@iki.fi>

	* fi.po: Updated Finnish translation.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4364 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-05 21:44:37 +00:00
Dan Williams
82d598cdee Fix literal error message
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4361 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-12-03 23:14:59 +00:00
Dan Williams
83d5532a30 2008-11-29 Dan Williams <dcbw@redhat.com>
* properties/nm-pptp.c
		- (auth_methods_setup, advanced_dialog_new_hash_from_dialog): add EAP
			to the auth method list



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4358 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-30 03:13:57 +00:00
Dan Williams
45e6a11c71 Merge updated translations
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4357 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-29 18:40:35 +00:00
Dan Williams
16ada88c3e Branch for 0.7
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4349 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-27 01:25:37 +00:00
Dan Williams
110f46941e Release NetworkManager 0.7
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4347 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-27 01:08:15 +00:00
Dan Williams
0697245e9f Update translatables
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4346 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-27 01:01:04 +00:00
Dan Williams
03381774fa Update NEWS for 0.7
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4345 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-27 00:49:54 +00:00
Dan Williams
de5150eded doc fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4344 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-27 00:49:19 +00:00
Dan Williams
f6225d7a94 2008-11-26 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-settings.c
	  libnm-glib/nm-settings.h
		- (nm_exported_connection_delete): rename 'delete' to 'do_delete' to
			avoid using C++ reserved keywords in headers

	* libnm-glib/nm-dbus-connection.c
	  system-settings/plugins/ifcfg-rh/nm-ifcfg-connection.c
	  system-settings/plugins/ifcfg-suse/nm-suse-connection.c
	  system-settings/plugins/ifupdown/nm-ifupdown-connection.c
	  system-settings/plugins/keyfile/nm-keyfile-connection.c
	  system-settings/src/nm-sysconfig-connection.c
		- Change 'delete' to 'do_delete'



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4343 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-27 00:00:14 +00:00