File gnome-control-center-bsc1003069-default-to-private-credentials.patch of Package gnome-control-center.10840

diff --git a/panels/network/network-dialogs.c b/panels/network/network-dialogs.c
index 7e7035c..70c755b 100644
--- a/panels/network/network-dialogs.c
+++ b/panels/network/network-dialogs.c
@@ -316,11 +316,18 @@ cc_network_panel_connect_to_8021x_network (GtkWidget        *toplevel,
 
         s_wsec = (NMSettingWirelessSecurity *) nm_setting_wireless_security_new ();
         g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_KEY_MGMT, "wpa-eap", NULL);
+        g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_WEP_KEY_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
+        g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_PSK_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
+        g_object_set (s_wsec, NM_SETTING_WIRELESS_SECURITY_LEAP_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
         nm_connection_add_setting (connection, NM_SETTING (s_wsec));
 
         s_8021x = (NMSetting8021x *) nm_setting_802_1x_new ();
         nm_setting_802_1x_add_eap_method (s_8021x, "ttls");
         g_object_set (s_8021x, NM_SETTING_802_1X_PHASE2_AUTH, "mschapv2", NULL);
+        g_object_set (s_8021x, NM_SETTING_802_1X_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
+        g_object_set (s_8021x, NM_SETTING_802_1X_PASSWORD_RAW_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
+        g_object_set (s_8021x, NM_SETTING_802_1X_PRIVATE_KEY_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
+        g_object_set (s_8021x, NM_SETTING_802_1X_PHASE2_PRIVATE_KEY_PASSWORD_FLAGS, NM_SETTING_SECRET_FLAG_AGENT_OWNED, NULL);
         nm_connection_add_setting (connection, NM_SETTING (s_8021x));
 
         dialog = nma_wifi_dialog_new (client, settings, connection, device, ap, FALSE);