1. 11 Sep, 2015 2 commits
    • Thomas Haller's avatar
      c-e: forward the validation error to print more sensible error message to stdout · e01de575
      Thomas Haller authored
      When a connection doesn't verify, the "Save" dialog stays desensitized.
      Even for an advanced user it's not immediately clear what causes the
      valdation failure.
      We already print a message like "Invalid setting Ethernet" to stdout.
      Extend the message to also print an more detailed error that gets propagated
      from the validation.
      This later should be improved further to indicating the failure reason
      in the UI too.
    • Thomas Haller's avatar
      c-e/trivial: rename virtual method validate() · 97954684
      Thomas Haller authored
      There are other function names with the same name.
      This makes it hard to grep the source code to find
      all type implementations of ce_page_validate().
  2. 25 Feb, 2015 1 commit
  3. 24 Feb, 2015 1 commit
  4. 10 Oct, 2014 1 commit
  5. 27 Aug, 2013 1 commit
  6. 12 Mar, 2013 1 commit
  7. 04 Oct, 2012 1 commit
  8. 20 Aug, 2012 1 commit
  9. 09 Aug, 2012 2 commits
  10. 13 Mar, 2012 4 commits
  11. 09 Feb, 2012 1 commit
  12. 21 Jul, 2011 1 commit
  13. 21 Jun, 2011 1 commit
  14. 20 Jun, 2011 1 commit
  15. 14 Mar, 2011 1 commit
  16. 23 Dec, 2010 1 commit
  17. 05 Dec, 2010 1 commit
    • Dan Williams's avatar
      core: fix GtkBuilder-related performance issues · 0f4fedc5
      Dan Williams authored
      GtkBuilder isn't as quick as libglade when building the widget
      tree from the XML file, so the previous handling of wireless
      security and EAP methods caused connection editor display times
      of 4 seconds or more on slower machines (like 1.7GHz Pentium M).
      Previously, all security and EAP UI was stored in one glade/builder
      file which was re-read from multiple places.  With glade that was
      fine, but GtkBuilder's gtk_builder_add_from_file() takes quite a
      bit longer than glade did.
      So split each piece security and EAP UI description out into a
      separate file, and consolidated handling of UI building into the
      EAPMethod and WirelessSecurity classes instead of doing it in
      the subclasses.
  18. 28 Nov, 2010 1 commit
  19. 06 Apr, 2010 1 commit
    • Dan Williams's avatar
      core: fix "Always ask for this password" behavior · 28e9f5b0
      Dan Williams authored
      The bug is that for 802.1x connections using simple EAP methods
      (like TTLS or PEAP) the applet would continually ask for the
      password even though "Always ask" was not checked.
      The applet still needs the password to pass back to NM when NM
      needs it to make a connection, so we only want to desensitize the
      password entry and clear out the password in nm-connection-editor
      when "Always ask" is checked.
      On the applet side, when the connection is an 'always ask' connection,
      store the "always ask" state, but still accept password entry and
      send it along to NM in the GetSecrets response when the user hits OK.
  20. 02 Oct, 2009 2 commits
    • Dan Williams's avatar
      editor: fix crash editing wired 802.1x connections · 8515a07e
      Dan Williams authored
      With the updates to ignore CA cert logic as part of
      b16d8aca the EAP methods now need
      a valid 'connection' setting passed to them, which the wired
      page's fill_connection() function wasn't doing.
    • 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.
  21. 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.
  22. 22 Aug, 2009 1 commit
  23. 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
  24. 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
  25. 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
      		- (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
      	* src/connection-editor/page-wireless-security.c
      		- (validate): clear applet private values when there's no security
      svn path=/trunk/; revision=1054
  26. 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
      		- (*_new_auto_connection): add UUID
      	* src/gconf-helpers/gconf-upgrade.c
      		- (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
      		- (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
      		- 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
  27. 14 Aug, 2008 1 commit
  28. 26 Jun, 2008 1 commit
  29. 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
      	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
  30. 13 Jun, 2008 1 commit
  31. 15 Apr, 2008 2 commits
    • Dan Williams's avatar
      prettify · 05d084c4
      Dan Williams authored
      svn path=/trunk/; revision=670
    • 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