ifcfg-rh: accept 802.1x connection with empty EAP-TLS identity

An identity is not needed for EAP-TLS.

https://bugzilla.redhat.com/show_bug.cgi?id=1391477
This commit is contained in:
Beniamino Galvani
2016-11-09 11:06:43 +01:00
parent 5aa4d778c9
commit 9430cf3e6b

View File

@@ -2550,14 +2550,10 @@ eap_tls_reader (const char *eap_method,
NMSettingSecretFlags flags; NMSettingSecretFlags flags;
value = svGetValueString (ifcfg, "IEEE_8021X_IDENTITY"); value = svGetValueString (ifcfg, "IEEE_8021X_IDENTITY");
if (!value) { if (value) {
g_set_error (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INVALID_CONNECTION, g_object_set (s_8021x, NM_SETTING_802_1X_IDENTITY, value, NULL);
"Missing IEEE_8021X_IDENTITY for EAP method '%s'.", g_free (value);
eap_method);
return FALSE;
} }
g_object_set (s_8021x, NM_SETTING_802_1X_IDENTITY, value, NULL);
g_free (value);
ca_cert = svGetValueString (ifcfg, ca_cert_key); ca_cert = svGetValueString (ifcfg, ca_cert_key);
if (ca_cert) { if (ca_cert) {