3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

auto-t: Add universal testEAP test

This tests all EAP methods in their standard configuration. Any
corner cases requiring changes to main.conf or other hostapd
options are not included and will be left as stand alone tests.

This was done because nearly all EAP tests are identical except
the IWD provisioning file and hostapd EAP users fine. The IWD
provisioning file can be swapped out as needed for each individual
test without actually restarting IWD. And the EAP users file can
simply be written to include every possible EAP method that
is supported.
This commit is contained in:
James Prestwood 2021-08-17 09:44:59 -07:00 committed by Denis Kenzior
parent 99a94bc441
commit c21dc9ed6f
37 changed files with 669 additions and 0 deletions

View File

@ -0,0 +1,22 @@
"112345678@phonesim.org" SIM
"012345678@phonesim.org" AKA
"612345678@phonesim.org" AKA'
"mschapv2@example.com" MSCHAPV2 "Password"
"pwd@example.com" PWD "Password"
# Phase 1 users
"tls@example.com" TLS
"ttls@example.com" TTLS
"peap@example.com" PEAP
"peapv0@example.com" PEAP [ver=0]
"peapv1@example.com" PEAP [ver=1]
# Phase 2
"md5-phase2@example.com" MD5 "Password" [2]
"gtc-phase2@example.com" GTC "Password" [2]
"mschapv2-phase2@example.com" MSCHAPV2 "Password" [2]
"ttls-chap-phase2@example.com" TTLS-CHAP "Password" [2]
"ttls-mschap-phase2@example.com" TTLS-MSCHAP "Password" [2]
"ttls-mschapv2-phase2@example.com" TTLS-MSCHAPV2 "Password" [2]
"ttls-pap-phase2@example.com" TTLS-PAP "Password" [2]
"112345678@phonesim.org" SIM [2]

View File

@ -0,0 +1,240 @@
#!/usr/bin/python3
from typing import Iterable
import unittest
import sys
sys.path.append('../util')
from iwd import IWD
from iwd import NetworkType
from iwd import PSKAgent
from hlrauc import AuthCenter
from ofono import Ofono
from config import ctx
import testutil
import traceback
class Test(unittest.TestCase):
def copy_network(self, name):
IWD.copy_to_storage(name, name='ssidEAP.8021x')
self.wd.wait_for_object_condition(self.wd,
'"ssidEAP" in [n.name for n in obj.list_known_networks()]')
def remove_network(self):
networks = self.wd.list_known_networks()
[n.forget() for n in networks if n.name == 'ssidEAP']
self.wd.wait_for_object_condition(self.wd,
'"ssidEAP" not in [n.name for n in obj.list_known_networks()]')
def validate_connection(self, wd, *secrets):
if secrets:
psk_agent = PSKAgent(*secrets)
wd.register_psk_agent(psk_agent)
devices = wd.list_devices(1)
self.assertIsNotNone(devices)
device = devices[0]
ordered_network = device.get_ordered_network('ssidEAP')
self.assertEqual(ordered_network.type, NetworkType.eap)
condition = 'not obj.connected'
wd.wait_for_object_condition(ordered_network.network_object, condition)
ordered_network.network_object.connect()
condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(device, condition)
testutil.test_iface_operstate()
testutil.test_ifaces_connected()
if secrets:
wd.unregister_psk_agent(psk_agent)
device.disconnect()
condition = 'not obj.connected'
wd.wait_for_object_condition(ordered_network.network_object, condition)
#
# EAP-AKA
#
def test_eap_aka(self):
if not ctx.is_process_running('ofonod'):
self.skipTest("ofono not running")
ofono = Ofono()
ofono.enable_modem('/phonesim')
ofono.wait_for_sim_auth()
auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim/aka.db')
self.copy_network('sim/ssidEAP-AKA.8021x')
try:
self.validate_connection(self.wd)
finally:
auth.stop()
#
# EAP-AKA'
#
def test_eap_aka_prime(self):
if not ctx.is_process_running('ofonod'):
self.skipTest("ofono not running")
ofono = Ofono()
ofono.enable_modem('/phonesim')
ofono.wait_for_sim_auth()
auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim/aka.db')
self.copy_network('sim/ssidEAP-AKA-prime.8021x')
try:
self.validate_connection(self.wd)
finally:
auth.stop()
#
# EAP-SIM
#
def test_eap_sim(self):
if not ctx.is_process_running('ofonod'):
self.skipTest("ofono not running")
ofono = Ofono()
ofono.enable_modem('/phonesim')
ofono.wait_for_sim_auth()
auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim/sim.db')
self.copy_network('sim/ssidEAP-SIM.8021x')
try:
self.validate_connection(self.wd)
finally:
auth.stop()
#
# EAP-MSCHAPv2
#
# * Credentials in 8021x file
# * Password-Hash in 8021x file
# * Agent request for password
# * Agent request for user + password
#
def test_eap_mschapv2(self):
self.copy_network('mschapv2/ssidEAP-MSCHAPV2.8021x')
self.validate_connection(self.wd)
self.copy_network('mschapv2/ssidEAP-MSCHAPV2-hash.8021x')
self.validate_connection(self.wd)
self.copy_network('mschapv2/ssidEAP-MSCHAPV2-nopass.8021x')
self.validate_connection(self.wd, [], ('mschapv2@example.com', 'Password'))
self.copy_network('mschapv2/ssidEAP-MSCHAPV2-nouserpass.8021x')
self.validate_connection(self.wd, [], ('mschapv2@example.com', 'Password'))
#
# EAP-PEAP
#
# * Test all combinations of PEAP, PEAPv0, PEAPv1 with MD5, GTC, SIM, MSCHAPv2
#
def test_eap_peap(self):
ofono = Ofono()
ofono.enable_modem('/phonesim')
ofono.wait_for_sim_auth()
auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim/sim.db')
for ver in ['PEAP', 'PEAPv0', 'PEAPv1']:
for inner in ['MD5', 'GTC', 'SIM', 'MSCHAPv2']:
self.copy_network('peap/ssidEAP-%s-%s.8021x' % (ver, inner))
try:
self.validate_connection(self.wd)
except Exception as e:
# Catch an error here and print the actual PEAP combo that failed
traceback.print_exc()
auth.stop()
raise Exception("%s-%s test failed" % (ver, inner))
self.remove_network()
auth.stop()
#
# EAP-PWD
#
def test_eap_pwd(self):
self.copy_network('ssidEAP-PWD.8021x')
self.validate_connection(self.wd)
#
# EAP-TLS
#
# * Encrypted private key, passphrase in 8021x file
# * Unencrypted private key
# * Encrypted private key, passphrase provided by agent
# * Embedded PEM inside 8021x file
# * KeyBundle
#
def test_eap_tls(self):
for name, secrets in [('keypass', None), ('nokeypass', None),
('des-ede3', 'abc'), ('embedded', None), ('keybundle', None)]:
self.copy_network('tls/ssidEAP-TLS-%s.8021x' % name)
try:
self.validate_connection(self.wd, secrets)
except Exception as e:
traceback.print_exc()
raise Exception('EAP-TLS (%s) failed' % name)
self.remove_network()
#
# EAP-TTLS
#
# * CHAP, MD5, MSCHAPV2 as phase 2
# * Tunneled-MSCHAP, Tunneled-MSCHAPV2, Tunneled-PAP as phase 2
#
def test_eap_ttls(self):
for name, secrets in [('CHAP', ('ttls@example.com', ('ttls-chap-phase2@example.com', 'Password'))),
('MD5', None),
('MSCHAPV2', ('ttls@example.com', ('mschapv2-phase2@example.com', 'Password'))),
('Tunneled-MSCHAP', ('ttls@example.com', ('ttls-mschap-phase2@example.com', 'Password'))),
('Tunneled-MSCHAPV2', ('ttls@example.com', ('ttls-mschapv2-phase2@example.com', 'Password'))),
('Tunneled-PAP', ('ttls@example.com', ('ttls-pap-phase2@example.com', 'Password')))]:
self.copy_network('ttls/ssidEAP-TTLS-%s.8021x' % name)
try:
if isinstance(secrets, Iterable):
self.validate_connection(self.wd, *secrets)
else:
self.validate_connection(self.wd, None)
except Exception as e:
traceback.print_exc()
raise Exception('EAP-TTLS (%s) failed' % name)
self.remove_network()
def setUp(self):
IWD.clear_storage()
def tearDown(self):
self.remove_network()
@classmethod
def setUpClass(cls):
cls.wd = IWD()
@classmethod
def tearDownClass(cls):
cls.wd = None
IWD.clear_storage()
if __name__ == '__main__':
unittest.main(exit=True)

View File

@ -0,0 +1,6 @@
[SETUP]
num_radios=2
sim_keys=ofono
[HOSTAPD]
rad0=ssidEAP.conf

View File

@ -0,0 +1,7 @@
[Security]
EAP-Method=MSCHAPV2
EAP-Identity=mschapv2@example.com
EAP-Password-Hash=a4f49c406510bdcab6824ee7c30fd852
[Settings]
AutoConnect=false

View File

@ -0,0 +1,6 @@
[Security]
EAP-Method=MSCHAPV2
EAP-Identity=mschapv2@example.com
[Settings]
AutoConnect=false

View File

@ -0,0 +1,5 @@
[Security]
EAP-Method=MSCHAPV2
[Settings]
AutoConnect=false

View File

@ -0,0 +1,7 @@
[Security]
EAP-Method=MSCHAPV2
EAP-Identity=mschapv2@example.com
EAP-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peap@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=GTC
EAP-PEAP-Phase2-Identity=gtc-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,14 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peap@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=MD5
EAP-PEAP-Phase2-Identity=md5-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peap@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=mschapv2-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,10 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peap@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=SIM
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv0@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=GTC
EAP-PEAP-Phase2-Identity=gtc-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv0@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=MD5
EAP-PEAP-Phase2-Identity=md5-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv0@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=mschapv2-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,10 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv0@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=SIM
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv1@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=GTC
EAP-PEAP-Phase2-Identity=gtc-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv1@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=MD5
EAP-PEAP-Phase2-Identity=md5-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv1@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=mschapv2-phase2@example.com
EAP-PEAP-Phase2-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,10 @@
[Security]
EAP-Method=PEAP
EAP-Identity=peapv1@example.com
EAP-PEAP-CACert=/tmp/certs/cert-ca.pem
EAP-PEAP-ClientCert=/tmp/certs/cert-client.pem
EAP-PEAP-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-PEAP-Phase2-Method=SIM
[Settings]
AutoConnect=false

View File

@ -0,0 +1,3 @@
# IMSI K OPC AMF SQN
12345678:90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581:61df:000000000021

View File

@ -0,0 +1 @@
12345678:673fb8cd35f98800:1fb1e3b5:DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

View File

@ -0,0 +1,5 @@
[Security]
EAP-Method=AKA'
[Settings]
AutoConnect=false

View File

@ -0,0 +1,2 @@
[Security]
EAP-Method=AKA

View File

@ -0,0 +1,5 @@
[Security]
EAP-Method=SIM
[Settings]
AutoConnect=false

View File

@ -0,0 +1,7 @@
[Security]
EAP-Method=PWD
EAP-Identity=pwd@example.com
EAP-Password=Password
[Settings]
AutoConnect=false

View File

@ -0,0 +1,14 @@
hw_mode=g
channel=1
ssid=ssidEAP
wpa=3
wpa_key_mgmt=WPA-EAP
ieee8021x=1
eap_server=1
eap_user_file=/tmp/secrets/eap-user.text
ca_cert=/tmp/certs/cert-ca.pem
server_cert=/tmp/certs/cert-server.pem
private_key=/tmp/certs/cert-server-key.pem
eap_sim_db=unix:/tmp/hlrauc.sock
eap_sim_aka_result_ind=1

View File

@ -0,0 +1,9 @@
[Security]
EAP-Method=TLS
EAP-TLS-CACert=/tmp/certs/cert-ca.pem
EAP-TLS-ClientCert=/tmp/certs/cert-client.crt
EAP-TLS-ClientKey=/tmp/certs/cert-client-key-v2-des-ede3.pem
EAP-Identity=tls@example.com
[Settings]
AutoConnect=False

View File

@ -0,0 +1,94 @@
[Security]
EAP-Method=TLS
EAP-TLS-CACert=embed:cert_ca
EAP-TLS-ClientCert=embed:cert_client
EAP-TLS-ClientKey=embed:cert_client_key
EAP-Identity=tls@example.com
[@pem@cert_ca]
-----BEGIN CERTIFICATE-----
MIIEVDCCAzygAwIBAgIJAJmt2W7CutHvMA0GCSqGSIb3DQEBCwUAMHgxNTAzBgNV
BAoMLEludGVybmF0aW9uYWwgVW5pb24gb2YgRXhhbXBsZSBPcmdhbml6YXRpb25z
MR8wHQYDVQQDDBZDZXJ0aWZpY2F0ZSBpc3N1ZXIgZ3V5MR4wHAYJKoZIhvcNAQkB
Fg9jYUBtYWlsLmV4YW1wbGUwHhcNMTYwNTE3MjEyMDQ2WhcNNDMxMDAzMjEyMDQ2
WjB4MTUwMwYDVQQKDCxJbnRlcm5hdGlvbmFsIFVuaW9uIG9mIEV4YW1wbGUgT3Jn
YW5pemF0aW9uczEfMB0GA1UEAwwWQ2VydGlmaWNhdGUgaXNzdWVyIGd1eTEeMBwG
CSqGSIb3DQEJARYPY2FAbWFpbC5leGFtcGxlMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAo3GrGqW49h8kY2Wx/1kd5dIkYGazuWrX93ma9904hHBJNsvu
V34QfHVln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LS-ClientKeyBundle=/tmp/certs/cert-client.p12
EAP-TLS-ClientKeyPassphrase=abc
EAP-Identity=tls@example.com
[Settings]
AutoConnect=False

View File

@ -0,0 +1,10 @@
[Security]
EAP-Method=TLS
EAP-TLS-CACert=/tmp/certs/cert-ca.pem
EAP-TLS-ClientCert=/tmp/certs/cert-client.pem
EAP-TLS-ClientKey=/tmp/certs/cert-client-key-md5-des.pem
EAP-TLS-ClientKeyPassphrase=abc
EAP-Identity=tls@example.com
[Settings]
AutoConnect=False

View File

@ -0,0 +1,9 @@
[Security]
EAP-Method=TLS
EAP-TLS-CACert=/tmp/certs/cert-ca.pem
EAP-TLS-ClientCert=/tmp/certs/cert-client.pem
EAP-TLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-Identity=tls@example.com
[Settings]
AutoConnect=False

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=TTLS
EAP-Identity=ttls@example.com
EAP-TTLS-Phase2-Method=Tunneled-CHAP
# If CHAP Identity and Password are left out, they will be requested through
# the agent.
#EAP-TTLS-Phase2-Identity=ttls-chap-phase2@example.com
#EAP-TTLS-Phase2-Password=Password
[Settings]
AutoConnect=False

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=TTLS
EAP-Identity=ttls@example.com
EAP-TTLS-CACert=/tmp/certs/cert-ca.pem
EAP-TTLS-ClientCert=/tmp/certs/cert-client.pem
EAP-TTLS-ClientKey=/tmp/certs/cert-client-key-pkcs8.pem
EAP-TTLS-Phase2-Method=MD5
EAP-TTLS-Phase2-Identity=md5-phase2@example.com
EAP-TTLS-Phase2-Password=Password
[Settings]
AutoConnect=False

View File

@ -0,0 +1,8 @@
[Security]
EAP-Method=TTLS
EAP-Identity=ttls@example.com
EAP-TTLS-CACert=/tmp/certs/cert-ca.pem
EAP-TTLS-ClientCert=/tmp/certs/cert-client.pem
EAP-TTLS-ClientKey=/tmp/certs/cert-client-key-v2-des-ede3.pem
EAP-TTLS-Phase2-Method=MSCHAPV2
EAP-TTLS-Phase2-Identity=mschapv2-phase2@example.com

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=TTLS
EAP-Identity=ttls@example.com
EAP-TTLS-Phase2-Method=Tunneled-MSCHAP
# If MSCHAP Identity and Password are left out, they will be requested through
# the agent.
#EAP-TTLS-Phase2-Identity=ttls-mschap-phase2@example.com
#EAP-TTLS-Phase2-Password=Password
[Settings]
AutoConnect=False

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=TTLS
EAP-Identity=ttls@example.com
EAP-TTLS-Phase2-Method=Tunneled-MSCHAPv2
# If MSCHAP Identity and Password are left out, they will be requested through
# the agent.
#EAP-TTLS-Phase2-Identity=ttls-mschapv2-phase2@example.com
#EAP-TTLS-Phase2-Password=Password
[Settings]
AutoConnect=False

View File

@ -0,0 +1,12 @@
[Security]
EAP-Method=TTLS
EAP-Identity=ttls@example.com
EAP-TTLS-Phase2-Method=Tunneled-PAP
# If PAP Identity and Password are left out, they will be requested through
# the agent.
#EAP-TTLS-Phase2-Identity=ttls-pap@example.com
#EAP-TTLS-Phase2-Password=Password
[Settings]
AutoConnect=False