eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit de2c8089700099a3996e4503980e1e10f835c1ee
parent 96ce39c1c25d28666c9fffd9f34208dc2eb5f7fe
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon, 26 Aug 2019 16:34:20 -0700

tools/ios_convert: add ServerDomainMask

Parses mobileconfig TLSTrustedServerNames

Diffstat:
Mtools/ios_convert.py | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/tools/ios_convert.py b/tools/ios_convert.py @@ -18,6 +18,7 @@ class Network: self.password = None self.ssid = None self.display_name = None + self.tls_trusted_servers = [] def process_eap_config(eap_conf, network): for m in range(len(eap_conf)): @@ -34,6 +35,10 @@ def process_eap_config(eap_conf, network): network.username = eap_conf[m + 1].text elif eap_conf[m].text == "UserPassword" and args.passwd: network.password = eap_conf[m + 1].text + elif eap_conf[m].text == "TLSTrustedServerNames": + tarray = eap_conf[m + 1] + for i in range(len(tarray)): + network.tls_trusted_servers.append(tarray[i].text) def process_payload_array(parray): network = Network() @@ -122,6 +127,11 @@ def write_network(network, root_ca_path): output += "EAP-%s-Phase2-Password=%s\n" % \ (eap, network.password) + if len(network.tls_trusted_servers) > 0: + output += "EAP-%s-ServerDomainMask=" % eap + output += ';'.join(network.tls_trusted_servers) + output += '\n' + if network.display_name: name = network.display_name elif network.ssid: