1. 02 Oct, 2009 1 commit
    • Dan Williams's avatar
      editor: fix secrets requests after 78b7101d · 6878f634
      Dan Williams authored
      After 78b7101d, the page's connection
      would of course be the duplicated connection which is a plain
      NMConnection that user edits are done on.  THat of course doesn't
      implement NMSettingsConnectionInterface, and thus can't respond to
      requests for secrets.
      
      Instead, we have the CEPage subclasses for each setting type pass back
      the name of the setting they want secrets for, if they need secrets,
      and let the editor ask for the secrets since it has the original
      connection which usually implements NMSettingsConnectionInterface.
      
      By moving the addition of the page's GtkWidget to after page
      initialization, we also fix system VPN connections, which were broken
      because the VPN page's plugin-provided widget is only valid after
      the page is initialized, but the editor expected it to be valid
      right after requesting secrets.  In the case of system secrets, the
      request is over D-Bus and is async, which meant that the call would
      complete and the page would initalize long after the connection editor
      had tried to add the page to the UI.
      6878f634
  2. 16 Sep, 2009 1 commit
    • Dan Williams's avatar
      core: update to work with certificate paths · b16d8aca
      Dan Williams authored
      Don't store the certificate/key paths in lookaside variables, just use
      the normal key/value pairs in the 802.1x setting.
      
      Since (for backwards compat) NM treats the private key as a secret, we
      need to do a few odd things like retrieving the private key paths from
      GConf when getting secrets from the keyring.
      
      Also, since the private keys and certificate properties are byte arrays,
      it's a slight bit more complicated to load/store them to GConf, requiring
      a bit of indirection in read_one_setting_value_from_gconf() and
      copy_one_setting_value_to_gconf().  Especially for
      copy_one_setting_value_to_gconf() since the incoming certificate may
      just be a byte array of the cert/key data from some older plugin or
      settings service, and thus we need to copy that cert data to a file
      on-disk and possibly re-encrypt a decrypted private key too.
      b16d8aca
  3. 22 Aug, 2009 1 commit
  4. 04 Apr, 2009 1 commit
    • Dan Williams's avatar
      src/connection-editor/page-wired-security.c - · 4a3460f6
      Dan Williams authored
      2009-04-04  Dan Williams  <dcbw@redhat.com>
      
      	* src/connection-editor/page-wired-security.c
      		- (ce_page_wired_security_new): don't connect to the "use 802.1x"
      			checkbox's 'toggled' signal here, do it after setting the
      			checkbox's initial value in finish_setup().  Fixes issue
      			where validation would be triggered prematurely, before the
      			editor was initialized
      		- (finish_setup): enable_toggled() already calls ce_page_changed()
      
      
      svn path=/trunk/; revision=1247
      4a3460f6
  5. 03 Apr, 2009 1 commit
    • Dan Williams's avatar
      Ensure PolicyKit autorization before editing system connections, and · 90e6e250
      Dan Williams authored
      2009-04-03  Dan Williams  <dcbw@redhat.com>
      
      	* Ensure PolicyKit autorization before editing system connections, and
      		request secrets from the system settings service for system connections.
      		This requires splitting each CEPage subclass's *_new() method into
      		two parts, the first doing minimal setup, and the second filling in
      		the UI with details from the backing NMConnection.  Between the first
      		and second parts, if required, secrets are requested from the system
      		settings service using PolicyKit.  As a bonus, actually handle errors
      		instead of dropping them on the floor.
      
      
      svn path=/trunk/; revision=1244
      90e6e250
  6. 05 Dec, 2008 1 commit
    • Dan Williams's avatar
      src/gconf-helpers/gconf-helpers.c src/gconf-helpers/gconf-helpers.h - · de2215e7
      Dan Williams authored
      2008-12-05  Dan Williams  <dcbw@redhat.com>
      
      	* src/gconf-helpers/gconf-helpers.c
      	  src/gconf-helpers/gconf-helpers.h
      		- (nm_gconf_clear_private_connection_values): new function to clear
      			applet private values from a connection
      
      	* src/connection-editor/page-wired-security.c
      		- (ce_page_wired_security_new): ensure setting gets updated when
      			security is changed
      		- (validate): copy applet private values to the real connection when
      			using 802.1x security; clear applet private values when there's no
      			security
      
      	* src/connection-editor/page-wireless-security.c
      		- (validate): clear applet private values when there's no security
      
      
      svn path=/trunk/; revision=1054
      de2215e7
  7. 27 Aug, 2008 1 commit
    • Dan Williams's avatar
      UUID updates. Requires NM svn 4013 or later, and VPN plugins 4018 or · f3c05a95
      Dan Williams authored
      2008-08-26  Dan Williams  <dcbw@redhat.com>
      
      	UUID updates.  Requires NM svn 4013 or later, and VPN plugins 4018 or later.
      
      	* src/applet-device-gsm.c
      	  src/applet-device-wifi.c
      	  src/applet-device-cdma.c
      	  src/applet-device-wired.c
      		- (*_new_auto_connection): add UUID
      
      	* src/gconf-helpers/gconf-upgrade.c
      	  src/gconf-helpers/gconf-upgrade.h
      		- (nm_gconf_read_0_6_wireless_connection,
      		   nm_gconf_read_0_6_vpn_connection): add UUID
      		- (nm_gconf_migrate_0_7_vpn_connections,
      		   nm_gconf_migrate_0_7_connection_names): remove; anybody using an NM
      			this old should be shot
      		- (try_convert_leap, copy_keyring_to_8021x,
      		   nm_gconf_migrate_0_7_wireless_security): UUIDs all around
      		- (nm_gconf_migrate_0_7_connection_uuid): add UUIDs to connections
      		- (nm_gconf_migrate_0_7_keyring_items): migrate keyring items from
      			'connection-name' or 'connection-id' to 'connection-uuid'
      
      	* src/gconf-helpers/nma-gconf-connection.c
      		- (get_id, constructor, dispose, finalize, get_secrets, update,
      		   nma_gconf_connection_class_init, nma_gconf_connection_save): remove
      			id-related stuff
      
      	* src/gconf-helpers/gconf-helpers.c
      	  src/gconf-helpers/gconf-helpers.h
      		- (nm_gconf_get_all_connections): add UUIDs to all connections, and
      			remove obsolete migration operations
      		- (nm_gconf_add_keyring_item, nm_gconf_write_connection,
      		   nm_gconf_get_keyring_items): remove 'id' argument since the
      			connection now provides the UUID
      
      	* src/wireless-security/eap-method-leap.c
      	  src/wireless-security/wireless-security.c
      	  src/wireless-security/ws-dynamic-wep.c
      	  src/wireless-security/eap-method-peap.c
      	  src/wireless-security/eap-method-ttls.c
      	  src/wireless-security/ws-leap.c
      	  src/wireless-security/ws-wep-key.c
      	  src/wireless-security/ws-wpa-psk.c
      	  src/wireless-security/eap-method-simple.c
      	  src/wireless-security/ws-wpa-eap.c
      	  src/wireless-security/eap-method-tls.c
      	  src/wireless-dialog.c
      	  src/connection-editor/page-wireless-security.c
      	  src/connection-editor/page-mobile.c
      	  src/connection-editor/page-wired-security.c
      	  src/connection-editor/page-dsl.c
      	  src/wired-dialog.c
      		- Use UUIDs from the connection, not a separate 'id'
      
      	* src/connection-editor/nm-connection-list.c
      		- (create_new_connection_for_type, import_success_cb): add UUIDs for
      			newly created or imported connections
      
      	* src/vpn-password-dialog.c
      		- (nma_vpn_request_password): pass 'uuid' to auth dialog, not 'id'
      
      
      svn path=/trunk/; revision=867
      f3c05a95
  8. 14 Aug, 2008 1 commit
  9. 26 Jun, 2008 1 commit
  10. 20 Jun, 2008 1 commit
    • Tambet Ingo's avatar
      src/connection-editor/ce-page.c src/connection-editor/ce-page.h · 291f1f12
      Tambet Ingo authored
      2008-06-20  Tambet Ingo  <tambet@gmail.com>
      
      	* src/connection-editor/ce-page.c
      	src/connection-editor/ce-page.h
      	src/connection-editor/nm-connection-editor.c
      	src/connection-editor/nm-connection-editor.h
      	src/connection-editor/nm-connection-list.c
      	src/connection-editor/page-dsl.c
      	src/connection-editor/page-ip4.c
      	src/connection-editor/page-mobile.c
      	src/connection-editor/page-ppp.c
      	src/connection-editor/page-vpn.c
      	src/connection-editor/page-wired-security.c
      	src/connection-editor/page-wired.c
      	src/connection-editor/page-wireless-security.c
      	src/connection-editor/page-wireless-security.h
      	src/connection-editor/page-wireless.c
      
      	Use a copy of the real connection in the connection editor. Fixes issues
      	where the connection is updated but writing it fails for some reason.
      	Keep the connection that's been edited updated after every UI change so
      	that pages can act on changes to other pages.
      
      svn path=/trunk/; revision=760
      291f1f12
  11. 13 Jun, 2008 1 commit
  12. 15 Apr, 2008 2 commits
    • Dan Williams's avatar
      prettify · 05d084c4
      Dan Williams authored
      svn path=/trunk/; revision=670
      05d084c4
    • Tambet Ingo's avatar
      Use nm_setting_duplicate() instead of hashing the setting first and then · 12c36d57
      Tambet Ingo authored
          2008-04-15  Tambet Ingo  <tambet@gmail.com>
      
          	* src/connection-editor/page-wireless.c (ce_page_wireless_new):
          	* src/connection-editor/page-wired.c (ce_page_wired_new):
          	* src/connection-editor/page-mobile.c (ce_page_mobile_new):
          	* src/connection-editor/page-ip4.c (ce_page_ip4_new):
          	* src/connection-editor/page-dsl.c (ce_page_dsl_new): Use
          	nm_setting_duplicate() instead of hashing the setting first and then
          	creating a new setting out of the hash. In addition to being annoying
          	to do, it also missed non-serializable properties in the duplicate.
      
          2008-04-15  Tambet Ingo  <tambet@gmail.com>
      
          	* src/connection-editor/page-wired-security.[ch]: Implement.
      
          	* src/connection-editor/nm-connection-editor.c
          	(nm_connection_editor_set_connection): Add wired security page.
      
          	* src/connection-editor/Makefile.am: Build new files.
      
          	* src/wireless-security/wireless-security.c
          	(ws_802_1x_auth_combo_init): Don't require a wireless security setting,
          	makes it preselect the correct EAP method for wired security as well.
      
          	* src/gconf-helpers/gconf-helpers.c (remove_leftovers): Implement.
          	(nm_gconf_write_connection): Remove the left over settings from GConf
          	which are not part of NMConnection anymore.
      
      svn path=/trunk/; revision=667
      12c36d57