Skip to content

Commit

Permalink
Merge pull request #969
Browse files Browse the repository at this point in the history
wireless-ifcfg: Ignore WIRELESS_EAP_AUTH with TLS (bsc#1211026)
  • Loading branch information
mtomaschewski committed May 12, 2023
2 parents 5cd1841 + 8df5d04 commit e3db8cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/suse/compat-suse.c
Expand Up @@ -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;
Expand Down

0 comments on commit e3db8cb

Please sign in to comment.