WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit fdfd81b

Browse files
committed
fixing problem with no outer identity for iwd
1 parent 517a25d commit fdfd81b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

devices/linux/Files/main.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,14 @@ def _create_eap_pwd_config(self, ssid: str, user_data: Type[InstallerData]) -> N
10301030

10311031
def _create_eap_peap_config(self, ssid: str, user_data: Type[InstallerData]) -> None:
10321032
""" create EAP-PEAP configuration """
1033+
if Config.anonymous_identity != '':
1034+
outer_identity = Config.anonymous_identity
1035+
else:
1036+
outer_identity = user_data.username
10331037
self.config = f"""
10341038
[Security]
10351039
EAP-Method=PEAP
1036-
EAP-Identity={Config.anonymous_identity}
1040+
EAP-Identity={outer_identity}
10371041
EAP-PEAP-CACert=embed:eduroam_ca_cert
10381042
EAP-PEAP-ServerDomainMask={IwdConfiguration.set_domain_mask()}
10391043
EAP-PEAP-Phase2-Method=MSCHAPV2
@@ -1049,10 +1053,14 @@ def _create_eap_peap_config(self, ssid: str, user_data: Type[InstallerData]) ->
10491053

10501054
def _create_ttls_pap_config(self, ssid: str, user_data: Type[InstallerData]) -> None:
10511055
""" create TTLS-PAP configuration"""
1056+
if Config.anonymous_identity != '':
1057+
outer_identity = Config.anonymous_identity
1058+
else:
1059+
outer_identity = user_data.username
10521060
self.config = f"""
10531061
[Security]
10541062
EAP-Method=TTLS
1055-
EAP-Identity={Config.anonymous_identity}
1063+
EAP-Identity={outer_identity}
10561064
EAP-TTLS-CACert=embed:eduroam_ca_cert
10571065
EAP-TTLS-ServerDomainMask={IwdConfiguration.set_domain_mask()}
10581066
EAP-TTLS-Phase2-Method=Tunneled-PAP

0 commit comments

Comments
 (0)