Commit graph

20 commits

Author SHA1 Message Date
David Zeuthen
d1086fc48c 2005-06-23 David Zeuthen <davidz@redhat.com>
* src/nm-vpnc-service.c (vpnc_watch_cb): Some users report even
        greater success with sleep (2) rather than sleep (1)...


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@742 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 20:03:47 +00:00
David Zeuthen
b88cd2913d 2005-06-23 David Zeuthen <davidz@redhat.com>
* auth-dialog/main.c (main): Print two newlines when the passwords
        are dumped and wait for the parent to tell us on stdin to die.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@740 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 19:47:07 +00:00
David Zeuthen
56240ef587 2005-06-23 David Zeuthen <davidz@redhat.com>
* properties/nm-vpnc.c (import_from_file): Allow "Description=" to be
        the empty string (reported by Bill Moss <bmoss@clemson.edu>).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@739 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 18:59:15 +00:00
David Zeuthen
59b45f9fe9 2005-06-17 David Zeuthen <davidz@redhat.com>
* configure.in, Makefile.am: Various fixes such that 'make distcheck'
        actually succeeds


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@705 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-17 15:56:34 +00:00
David Zeuthen
186c2fb500 2005-06-17 David Zeuthen <davidz@redhat.com>
* properties/nm-vpnc.c: Add new NM_VPN_API_SUBJECT_TO_CHANGE so we
        can include nm-vpn-ui-interface.h.
        (import_from_file): New function
        (import_button_clicked): Actually Implement this function
        (impl_can_export): New function
        (impl_import_file): New function
        (export_to_file): New function
        (impl_export): New function
        (impl_get_object): Add function pointers for can_export, import_file
        and export

        * nm-vpnc.desktop.in: New file

        * configure.in: Add AC_PROG_INTLTOOL

        * Makefile.am: Add rules for building the .desktop file


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@699 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-17 04:16:48 +00:00
Robert Love
def204675a Update .cvsignore files
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@691 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-16 21:46:58 +00:00
David Zeuthen
6ea559a44c 2005-06-16 David Zeuthen <davidz@redhat.com>
* Makefile.am (dbusservicedir): Adjust to use $(sysconfdir)

        * configure.in: Don't do the DBUS_SYS_DIR thing since it's always
        at $(sysconfdir)/dbus-1/system.d


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@690 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-16 19:16:09 +00:00
David Zeuthen
dd4fc8fc24 2005-06-16 David Zeuthen <davidz@redhat.com>
* properties/nm-vpnc.c: Include w_use_domain and w_domain
        (impl_get_widget): Reset w_domain, w_use_domain
        (impl_get_properties): Also pass Domain option if applicable
        (impl_is_valid): Add validation code for Domain
        (use_domain_toggled): New function
        (impl_get_confirmation_details): Also put out info about Domain if
        applicable
        (impl_get_object): Get w_domain, w_use_domain widgets and set
        up event listeners for them

        * properties/nm-vpnc-dialog.glade: Added the Domain optional
        setting


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@686 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-16 18:18:25 +00:00
David Zeuthen
e21fd4a33f Forgot to add README
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@665 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-12 14:42:15 +00:00
David Zeuthen
c357c61e35 2005-06-12 David Zeuthen <davidz@redhat.com>
* gnome/vpn-properties/nm-vpn-ui-interface.h: New file

	* gnome/vpn-properties/nm-vpn-properties.glade: New file

	* gnome/vpn-properties/nm-vpn-properties.c: New file

	* gnome/vpn-properties/Makefile.am: New file

	* src/vpn-manager/nm-vpn-manager.h: Rework prototypes to take an
	array of passwords

	* src/vpn-manager/nm-vpn-manager.c
	(nm_vpn_manager_activate_vpn_connection): Take an array of passwords
	instead of just a single one

	* src/vpn-manager/nm-dbus-vpn.c:
	(nm_dbus_vpn_get_vpn_connection_properties): Also append service_name
	here
	(nm_dbus_vpn_activate_connection): Rework to take an array of passwords

	* gnome/applet/vpn-password-dialog.h (nmwa_vpn_request_password):
	Change the interface here to give a list of passwords. Also, don't
	require username, but do require service

	* gnome/applet/vpn-password-dialog.c: Look up the VPN .name files for
	the binary for the auth-dialog and use that instead of putting up a
	dialog asking for a single password

	* gnome/applet/vpn-connection.[ch]: Don't remember the user_name,
	however do remember the service

	* gnome/applet/main.c (main): Setup i18n

	* gnome/applet/applet.c (nmwa_update_state): Add a line "VPN
	connection to '%s'" to the tooltip if we are connected using VPN
	(nmwa_menu_vpn_item_activate): Check last_attempt_success gconf
	key to determine whether we the auth-dialog needs to
	reprompt. Also cope with the fact that the auth-dialog now returns
	an array of passwords.
	(nmwa_menu_configure_vpn_item_activate): New handler for
	"Configure VPN..." menu item
	(nmwa_menu_add_vpn_menu): Add the "Configure VPN..." menu item
	(is_vpn_available): New function to determine if we got any
	NM-compatible VPN software installed
	(nmwa_menu_add_devices): Use is_vpn_available to add VPN menu
	items only if we have NM-compatible VPN software installed
	(nmwa_gconf_vpn_connections_notify_callback): Slightly rework the
	logic for detecting when VPN connections are removed

	* gnome/applet/applet-dbus.h: Removed the prototypes for
	nmwa_dbus_vpn_activate_connection, nmwa_dbus_vpn_deactivate_connection
	since these are defined elsewhere

	* gnome/applet/applet-dbus.c (set_vpn_last_attempt_status): New
	function used to keep track of whether the last attempt succeded
	(nmwa_dbus_filter): Update last_attempt according to whether the
	VPN connection could be established or not

	* gnome/applet/applet-dbus-vpn.h (nmwa_dbus_vpn_deactivate_connection):
	Change prototype to take an array of passwords, not just a single
	password

	* gnome/applet/applet-dbus-vpn.c (nmwa_dbus_vpn_properties_cb): Only
	update service, not user
	(nmwa_dbus_vpn_remove_one_vpn_connection): Check that applet->
	dbus_active_vpn_name is not NULL before using it
	(nmwa_dbus_vpn_activate_connection): Send the passwords as a
	string array instead of assuming a single password

	* gnome/applet/applet-dbus-info.c:
	(nmi_dbus_get_vpn_connection_properties): Use the logged in user for
	user name; don't read from gconf

	* gnome/applet/Makefile.am: Also export SYSCONFDIR and
	VPN_NAME_FILES_DIR

	* gnome/Makefile.am (SUBDIRS): Add vpn-properties

	* configure.in: Add checks for gmodule-2.0.
	Generate gnome/vpn-properties/Makefile. Don't generate any Makefile's
	in vpn-daemons nor vpn-daemons/vpnc. We have separate autotooled
	projects under vpn-daemons now.	 See vpn-daemons/vpnc/Changelog
	for details

	* vpn-daemons/Makefile.am: Removed

	* vpn-daemons/README: New file to describe extensions points for VPN
	software


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@664 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-12 14:35:59 +00:00
David Zeuthen
628aedd140 2005-06-12 David Zeuthen <davidz@redhat.com>
* doc/example-vpnc-system-wide-connection.sh: New file

	* properties/nm-vpnc-dialog.glade: New file

	* properties/nm-vpnc.c: New file

	* properties/Makefile.am: New file

	* auth-dialog/Makefile.am: New file

	* auth-dialog/gnome-two-password-dialog.[ch]: New files, based
	on gnome-password-dialog.[ch] from libgnomeui

	* auth-dialog/main.c: New file

	* po/POTFILES.in, po/ChangeLog, da.po: New files

	* Makefile.am: Add src, auth-dialog, propertes and po

	* autogen.sh: New file

	* configure.in: New file

	* acinclude.m4: New file

	* README: New file

	* NEWS: New file

	* ChangeLog: New file

	* AUTHORS: New file

	* nm-vpnc-service.name.in: Based on nm-vpnc-service.name. Reworked
	to sport multiple sections and have the paths to the auth-dialog
	binary and properties shared object

	* nm-vpnc-service.name: Deleted and replaced by
	nm-vpnc-service.name.in

	* nm-vpnc-service.conf: Rename from org.freedesktop.vpn to
	org.freedesktop.NetworkManager.vpnc

	* src/nm-vpnc-service.h: Rename from org.freedesktop.vpn to
	org.freedesktop.NetworkManager.vpnc (New file)

	* src/nm-vpnc-service.c: Use the system-installed
	NetworkManager.h instead. Setup i18n. (New file)
	(nm_vpnc_config_write): Rework to cope with passwords being
	an array.
	(nm_vpnc_config_options_validate): Add "Xauth username" to list
	of allowed options
	(nm_vpnc_dbus_handle_start_vpn): Passwords is now an array.

	* src/nm-vpnc-service-vpnc-helper.c: Use the system-installed
	NetworkManager.h instead (New file)

	* nm-vpn-service.[ch], nm-vpn-service-vpnc-helper.c: Moved in src

	* src/nm-utils.[ch]: For now, a local copy duplicated from utils/ in
	the NM project


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@663 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-12 14:34:54 +00:00
Dan Williams
82bf4f2b72 2005-05-27 Dan Williams <dcbw@redhat.com>
* vpn-daemons/vpnc/nm-vpnc-service.c
		- (vpnc_watch_cb): wait a bit before trying to read vpnc's pidfile.
			Should fix the bug where the VPN connection terminates the first time.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@650 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-27 14:19:30 +00:00
Dan Williams
74a2ffa9b7 2005-05-20 Dan Williams <dcbw@redhat.com>
* NetworkManager.h
		- Differentiate VPN config signals between bad VPN config options
			and bad IP config

	* gnome/applet/applet-dbus-info.h
		- Add prototypes for wireless network and vpn connection update functions

	* gnome/applet/applet-dbus.c
		- (nmwa_dbus_filter): trap new VPN config error signals from NetworkManager

	* gnome/applet/applet.c
		- (nmwa_schedule_vpn_failure_dialog): new dialog text for new VPN config
			error signals
		- (nmwa_gconf_networks_notify_cb): re-enable wireless network change notify
			propogation to NetworkManager
		- (nmwa_gconf_vpn_connections_notify_cb): re-enable vpn connection change
			notify propogation to NetworkManager

	* src/NetworkManagerDbus.c
		- (nm_dbus_update_one_allowed_network): make sure to specify which AP list we
			are updating so a network can be removed from it if necessary

	* src/vpn-manager/nm-vpn-manager.c
		- (nm_vpn_manager_process_signal): trap new vpn config error signals

	* vpn-daemons/vpnc/nm-vpnc-service.c
		- (nm_vpnc_dbus_signal_failure): generalize function for all VPN error signals
		- (nm_vpnc_dbus_signal_launch_failed): remove
		- (nm_vpnc_dbus_signal_connect_failed): remove
		- (nm_vpnc_helper_timer_cb): update for new generalized error signal function
		- (nm_vpnc_schedule_helper_timer): increase timeout to 10s
		- (vpnc_watch_cb): don't whine about exit code if vpnc exited cleanly, update
			for new generalized error signal function, remove config file stuff
		- (nm_vpnc_start_vpnc_binary): grab a stdin pipe to vpnc after spawning it so
			we can write configuration options to it
		- (nm_vpnc_config_file_generate): removed
		- (nm_vpnc_config_write): write configuration options to the vpnc stdin pipe
		- (nm_vpnc_config_options_validate): validate the config options we receive
			from NetworkManager to block potential exploits
		- (nm_vpnc_dbus_handle_start_vpn): call option validation function before
			starting vpnc
		- (nm_vpnc_dbus_process_helper_config_error): actually propogate config error
			to NetworkManager


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@646 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-21 04:33:19 +00:00
Dan Williams
c0b132608a 2005-05-16 Dan Williams <dcbw@redhat.com>
* vpn-daemons/vpnc/nm-vpnc-service-vpnc-helper.c
		- (main): Work correctly with vpnc 0.3.3 by exiting if the "reason" code
			is not "connect"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@638 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-16 16:08:18 +00:00
Dan Williams
21bdc07fa8 2005-05-14 Dan Williams <dcbw@redhat.com>
* NetworkManager.h
		- Add signals for VPN Launch and Connect failures

	* gnome/applet/applet-dbus.c
		- (nmwa_dbus_filter): Trap new VPN launch & connect failure signals

	* gnome/applet/applet.c
		- (nmwa_show_vpn_failure_dialog): generalize old nmwa_show_vpn_login_failure_dialog()
			function to handle all VPN failure messages
		- (nmwa_schedule_vpn_failure_dialog): generalize old  nmwa_schedule_vpn_login_failure_dialog()
			function to hanlde all VPN failure  messages
		- (show_warning_dialog): work around focus-stealing prevention

	* gnome/applet/other-network-dialog.c
	  gnome/applet/passphrase-dialog.c
		- (update_button_cb): Make sure the OK button is enabled when it should be, fixes
			problem where it never enabled for ASCII Key and Hex Key types

	* gnome/applet/wireless-applet.glade
		- Add window title to Other Wireless Network Dialog

	* src/vpn-manager/nm-dbus-vpn.c
		- (nm_dbus_vpn_signal_vpn_failed): generalize old nm_dbus_vpn_signal_vpn_login_failed()
			function to handle all VPN failure messages

	* src/vpn-manager/nm-vpn-manager.c
		- (nm_vpn_manager_process_signal): trap and proxy VPN launch & connect failure signals too

	* vpn-daemons/vpnc/nm-vpnc-service.c
		- (nm_vpnc_dbus_signal_launch_failed): new function
		- (nm_vpnc_dbus_signal_connect_failed): new function
		- (nm_vpnc_helper_timer_cb): signal connect failure on timeout
		- (vpnc_watch_cb): signal connection failure when vpnc exits with connection failure
		- (nm_vpnc_start_vpnc_binary): search a number of locations for vpnc
		- (nm_vpnc_dbus_handle_start): send launch failure signal when we fail to launch vpnc


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@627 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-14 21:54:30 +00:00
Dan Williams
7d54da0ea8 2005-05-11 Dan Williams <dcbw@redhat.com>
* vpn-daemons/vpnc/nm-vpnc-service.c
		- (nm_vpnc_start_vpnc_binary): NULL-ify GError before using it
		- (nm_vpnc_config_file_generate): Attempt to ensure that the path for the config
			file exists before trying to write it out.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@619 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-11 20:35:54 +00:00
Peter Jones
c3ceb22c95 More gcc4 attribute silliness
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@600 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-03 21:43:30 +00:00
Dan Williams
a5dd14c305 2005-04-27 Dan Williams <dcbw@redhat.com>
* Merge the applet and the info-daemon, and move the converged
                applet under gnome/applet
        * Move libnm_glib to gnome/libnm_glib
        * Convert most dbus calls between the applet, info-daemon, and NM
                into async calls
        * Fix a few things valgrind noticed
        * Make NM broadcast state more reliably


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@586 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-04-27 18:05:16 +00:00
Dan Williams
b6215ff296 2005-04-15 Dan Williams <dcbw@redhat.com>
- Fixes to pass 'make distcheck'


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@572 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-04-15 16:37:26 +00:00
Dan Williams
de1d417198 2005-04-15 Dan Williams <dcbw@redhat.com>
Initial VPN Support
		- supports 'vpnc'
		- reworks device IP configuration, backend files have changed and will need
			to be updated for all distributions.  I will try to do what I can for
			them, but I cannot test them.

	- Move named directory to src/named-manager
	- Make backends directory self-contained


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@571 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-04-15 15:43:42 +00:00