diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-11-09 11:06:43 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-11-11 11:03:57 +0100 |
commit | 9430cf3e6b79f63c73627e99d27f90bc9f2f8ae5 (patch) | |
tree | 712ed3b5c683db555047cdd2139da61e8c288d8a | |
parent | 5aa4d778c97b61e85b248503d384fd9a2e40858b (diff) | |
download | NetworkManager-9430cf3e6b79f63c73627e99d27f90bc9f2f8ae5.tar.gz |
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
-rw-r--r-- | src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c index 4987b33b62..8bd6fb4519 100644 --- a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c +++ b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c @@ -2550,14 +2550,10 @@ eap_tls_reader (const char *eap_method, NMSettingSecretFlags flags; value = svGetValueString (ifcfg, "IEEE_8021X_IDENTITY"); - if (!value) { - g_set_error (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INVALID_CONNECTION, - "Missing IEEE_8021X_IDENTITY for EAP method '%s'.", - eap_method); - return FALSE; + if (value) { + g_object_set (s_8021x, NM_SETTING_802_1X_IDENTITY, value, NULL); + g_free (value); } - g_object_set (s_8021x, NM_SETTING_802_1X_IDENTITY, value, NULL); - g_free (value); ca_cert = svGetValueString (ifcfg, ca_cert_key); if (ca_cert) { |