EAPOL_TEST = eapol_test
-EAP_TLS_TESTS = eap-ttls-pap.conf eap-ttls-mschapv2.conf peap-mschapv2.conf
+EAP_TLS_TESTS = eap-ttls-pap.conf eap-mschapv2.conf \
+ eap-ttls-mschapv2.conf peap-mschapv2.conf
SECRET = testing123
@$(MAKE) radiusd.kill
@rm -f ../../raddb/test.conf
+tests.eap: ../../raddb/test.conf radiusd.kill
+ @chmod a+x runtests.sh
+ @rm -f radius.log
+ @$(MAKE) radiusd.pid
+ @$(MAKE) eap
+ @$(MAKE) radiusd.kill
+ @rm -f ../../raddb/test.conf
+
eap: $(EAP_TLS_TESTS)
- $(EAPOL_TEST) -c eap-ttls-pap.conf -s $(SECRET)
- $(EAPOL_TEST) -c peap-mschapv2.conf -s $(SECRET)
- $(EAPOL_TEST) -c eap-ttls-mschapv2.conf -s $(SECRET)
+ for x in $(EAP_TLS_TESTS); do \
+ $(EAPOL_TEST) -c $$x -p $(PORT) -s $(SECRET); \
+ done
md5:
$(EAPOL_TEST) -c eap-md5.conf -s $(SECRET)
# MS-MPPE-Encryption-Policy = 0x00000001
# MS-MPPE-Encryption-Types = 0x00000006
#
+# NT Hash hash = 0x9a936faf344359a0f1e3c9b5585b9f1f
+#
User-Name = "bob",
MS-CHAP-Challenge = 0xb9634adc358b2ab3,
MS-CHAP-Response = 0xb9010000000000000000000000000000000000000000000000007a42408782f745ef90a86fd21b0d9294132750f4af66a419
PORT=12340
HOME_PORT=12350
+SECRET=testing123
rm -f verbose.log
RCODE=0
echo "-f .cache/$x" >> .bar
done
-../main/radclient `cat .bar` -xFd . 127.0.0.1:$PORT auth testing123 > radclient.log 2>&1
+../main/radclient `cat .bar` -xFd . 127.0.0.1:$PORT auth $SECRET > radclient.log 2>&1
for x in `cat .foo`
do