+2008-11-14 Dan Williams <dcbw@redhat.com>
+
+ * vpn-manager/nm-vpn-connection.c
+ - (plugin_state_changed): clear VPN secrets on error to ensure they
+ are always requested from the settings service (rh #429287)
+
2008-11-13 Dan Williams <dcbw@redhat.com>
* libnm-util/crypto.c
gpointer user_data)
{
NMVPNConnection *connection = NM_VPN_CONNECTION (user_data);
- NMVPNConnectionPrivate *priv;
+ NMVPNConnectionPrivate *priv = NM_VPN_CONNECTION_GET_PRIVATE (connection);
nm_info ("VPN plugin state changed: %d", state);
case NM_VPN_CONNECTION_STATE_CONNECT:
case NM_VPN_CONNECTION_STATE_IP_CONFIG_GET:
case NM_VPN_CONNECTION_STATE_ACTIVATED:
-
- priv = NM_VPN_CONNECTION_GET_PRIVATE (connection);
-
nm_info ("VPN plugin state change reason: %d", priv->failure_reason);
nm_vpn_connection_set_vpn_state (connection,
NM_VPN_CONNECTION_STATE_FAILED,
default:
break;
}
+
+ /* Clear connection secrets too so the auth dialogs get asked
+ * for them next time.
+ */
+ nm_connection_clear_secrets (priv->connection);
}
static const char *