From 8df5d0462a0318d9a4948366d16eae99e3662ed3 Mon Sep 17 00:00:00 2001 From: Clemens Famulla-Conrad Date: Thu, 11 May 2023 13:13:09 +0200 Subject: [PATCH] wireless-ifcfg: Ignore WIRELESS_EAP_AUTH within TLS (bsc#1211026) Ignore `WIRELESS_EAP_AUTH` when `WIRELESS_EAP_MODE=TLS` is used. --- client/suse/compat-suse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/suse/compat-suse.c b/client/suse/compat-suse.c index 93e9925a7..c4c87500a 100644 --- a/client/suse/compat-suse.c +++ b/client/suse/compat-suse.c @@ -4170,7 +4170,10 @@ __ni_wireless_parse_eap_auth(const ni_sysconfig_t *sc, ni_wireless_network_t *ne } if ((var = __find_indexed_variable(sc,"WIRELESS_EAP_AUTH", suffix))) { - if (!ni_wireless_name_to_eap_method(var->value, &net->wpa_eap.phase2.method)) { + if (net->wpa_eap.method == NI_WIRELESS_EAP_TLS) { + ni_warn("ifcfg-%s: Ignore WIRELESS_EAP_AUTH%s for eap mode TLS", dev_name, suffix); + + } else if (!ni_wireless_name_to_eap_method(var->value, &net->wpa_eap.phase2.method)) { ni_error("ifcfg-%s: wrong WIRELESS_EAP_AUTH%s value", dev_name, suffix); goto eap_failure;