mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 04:18:30 +02:00
ifcfg-rh: read IEEE_8021X_ANON_IDENTITY for PEAP too (rh #708436)
This commit is contained in:
parent
70aba9a038
commit
3c0bf572c4
1 changed files with 6 additions and 0 deletions
|
|
@ -2235,6 +2235,7 @@ eap_peap_reader (const char *eap_method,
|
|||
gboolean phase2,
|
||||
GError **error)
|
||||
{
|
||||
char *anon_ident = NULL;
|
||||
char *ca_cert = NULL;
|
||||
char *real_cert_path = NULL;
|
||||
char *inner_auth = NULL;
|
||||
|
|
@ -2276,6 +2277,10 @@ eap_peap_reader (const char *eap_method,
|
|||
if (svTrueValue (ifcfg, "IEEE_8021X_PEAP_FORCE_NEW_LABEL", FALSE))
|
||||
g_object_set (s_8021x, NM_SETTING_802_1X_PHASE1_PEAPLABEL, "1", NULL);
|
||||
|
||||
anon_ident = svGetValue (ifcfg, "IEEE_8021X_ANON_IDENTITY", FALSE);
|
||||
if (anon_ident && strlen (anon_ident))
|
||||
g_object_set (s_8021x, NM_SETTING_802_1X_ANONYMOUS_IDENTITY, anon_ident, NULL);
|
||||
|
||||
inner_auth = svGetValue (ifcfg, "IEEE_8021X_INNER_AUTH_METHODS", FALSE);
|
||||
if (!inner_auth) {
|
||||
g_set_error (error, IFCFG_PLUGIN_ERROR, 0,
|
||||
|
|
@ -2325,6 +2330,7 @@ done:
|
|||
g_free (peapver);
|
||||
g_free (real_cert_path);
|
||||
g_free (ca_cert);
|
||||
g_free (anon_ident);
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue