A RADIUS EAP-MSCHAPv2 client
Project description
RADIUS EAP-MSCHAPv2 Client
A pure Python 3 RADIUS EAP-MSCHAPv2 client implementation.
Explanation
This project was developped because no RADIUS client library supports EAP-MSCHAPv2 (A ticket is open for the pyrad library, see here).
This library only supports EAP-MSCHAPv2. This code has been tested with Microsoft Windows Server 2016 Network Policy Server.
Usage
from RADIUS import RADIUS radius_host = '10.1.2.3' radius_secret = 'r4d!us_$3cr3t' radius_nas_ip = '10.3.2.1' radius_nas_id = 'mynas' username = 'myuser' password = 'mypassword!' r = RADIUS(radius_host, radius_secret, radius_nas_ip, radius_nas_id) print(r.is_credential_valid(username, password))
Requirements
This script has been written for Python 3.5 and newer.
You must install librairies with pip3 install -r requirements.txt
.
Credits
To make this implementation, I used the daphp/radius PHP implementation.
The article Understanding PEAP In-Depth also helped me a lot.
Thanks to them.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for radius-eap-mschapv2-client-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de039d9a7de900f7fce6f508d76238a69f73c117d5585b11e39783eecff29c3c |
|
MD5 | e9b36b097145dc34db5f58548ab13773 |
|
BLAKE2b-256 | 05caf85873ae3a3ef48e3ea7a3ee7fdb7b04126aab258f455a3542c9089a5b96 |
Close
Hashes for radius_eap_mschapv2_client-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebcfff05d376d835fb54b1b278eca467b23464d8357a0a6c171443d097431274 |
|
MD5 | 3aed6983e4bc94a3296951857719edff |
|
BLAKE2b-256 | 876aa3765b5c6b76eb2f0ff6b429f7be6fcd4f14cfe7f121b56624bca1c7c458 |