mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 06:30:33 +01:00
ifcfg-rh: add support for domain-suffix-match properties
This commit is contained in:
parent
64b76ba906
commit
a4b4e0bc5b
3 changed files with 26 additions and 0 deletions
|
|
@ -3415,6 +3415,12 @@ nm_setting_802_1x_class_init (NMSetting8021xClass *setting_class)
|
|||
*
|
||||
* Since: 1.2
|
||||
**/
|
||||
/* ---ifcfg-rh---
|
||||
* property: domain-suffix-match
|
||||
* description: Suffix to match domain of server certificate against.
|
||||
* variable: IEEE_8021X_DOMAIN_SUFFIX_MATCH(+)
|
||||
* ---end---
|
||||
*/
|
||||
g_object_class_install_property
|
||||
(object_class, PROP_DOMAIN_SUFFIX_MATCH,
|
||||
g_param_spec_string (NM_SETTING_802_1X_DOMAIN_SUFFIX_MATCH, "", "",
|
||||
|
|
@ -3672,6 +3678,12 @@ nm_setting_802_1x_class_init (NMSetting8021xClass *setting_class)
|
|||
*
|
||||
* Since: 1.2
|
||||
**/
|
||||
/* ---ifcfg-rh---
|
||||
* property: phase2-domain-suffix-match
|
||||
* description: Suffix to match domain of server certificate for phase 2 against.
|
||||
* variable: IEEE_8021X_PHASE2_DOMAIN_SUFFIX_MATCH(+)
|
||||
* ---end---
|
||||
*/
|
||||
g_object_class_install_property
|
||||
(object_class, PROP_PHASE2_DOMAIN_SUFFIX_MATCH,
|
||||
g_param_spec_string (NM_SETTING_802_1X_PHASE2_DOMAIN_SUFFIX_MATCH, "", "",
|
||||
|
|
|
|||
|
|
@ -3076,6 +3076,13 @@ fill_8021x (shvarFile *ifcfg,
|
|||
read_8021x_list_value (ifcfg, "IEEE_8021X_PHASE2_ALTSUBJECT_MATCHES",
|
||||
s_8021x, NM_SETTING_802_1X_PHASE2_ALTSUBJECT_MATCHES);
|
||||
|
||||
value = svGetValue (ifcfg, "IEEE_8021X_DOMAIN_SUFFIX_MATCH", FALSE);
|
||||
g_object_set (s_8021x, NM_SETTING_802_1X_DOMAIN_SUFFIX_MATCH, value, NULL);
|
||||
g_free (value);
|
||||
value = svGetValue (ifcfg, "IEEE_8021X_PHASE2_DOMAIN_SUFFIX_MATCH", FALSE);
|
||||
g_object_set (s_8021x, NM_SETTING_802_1X_PHASE2_DOMAIN_SUFFIX_MATCH, value, NULL);
|
||||
g_free (value);
|
||||
|
||||
if (list)
|
||||
g_strfreev (list);
|
||||
if (keys)
|
||||
|
|
|
|||
|
|
@ -582,6 +582,13 @@ write_8021x_setting (NMConnection *connection,
|
|||
svSetValue (ifcfg, "IEEE_8021X_PHASE2_ALTSUBJECT_MATCHES", str->str, FALSE);
|
||||
g_string_free (str, TRUE);
|
||||
|
||||
svSetValue (ifcfg, "IEEE_8021X_DOMAIN_SUFFIX_MATCH",
|
||||
nm_setting_802_1x_get_domain_suffix_match (s_8021x),
|
||||
FALSE);
|
||||
svSetValue (ifcfg, "IEEE_8021X_PHASE2_DOMAIN_SUFFIX_MATCH",
|
||||
nm_setting_802_1x_get_phase2_domain_suffix_match (s_8021x),
|
||||
FALSE);
|
||||
|
||||
success = write_8021x_certs (s_8021x, FALSE, ifcfg, error);
|
||||
if (success) {
|
||||
/* phase2/inner certs */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue