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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file radius-eap-mschapv2-client-1.tar.gz.
File metadata
- Download URL: radius-eap-mschapv2-client-1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
912f042c6b78257954d9103638b82f8b2ab08210351ce716d544e51a923a3100
|
|
| MD5 |
3c26b17277e934e289444e497c906a8b
|
|
| BLAKE2b-256 |
6dbe768b4f88b7925c22ca7dd7e2bb436f6552b64431e64f569168134b0fdcdf
|
File details
Details for the file radius_eap_mschapv2_client-1-py3-none-any.whl.
File metadata
- Download URL: radius_eap_mschapv2_client-1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce74766828efc56d871d71caad0aa0b1dfafe713a0b43731ae0fc262ca05d130
|
|
| MD5 |
db9670b7e787ce6de3ccb18c88b2fb6a
|
|
| BLAKE2b-256 |
5141fbf9152de7404d422debe3a33bf29e7d73de9c547550c6b91353a0b1cc41
|