Skip to main content

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.

Metadata

Release files for radius-eap-mschapv2-client 1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for radius-eap-mschapv2-client 1
File Size Uploaded Provenance Actions
radius-eap-mschapv2-client-1.tar.gz 10.8 kB Without provenance Details for radius-eap-mschapv2-client-1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radius-eap-mschapv2-client 1
File Interpreter ABI Platform Actions
radius_eap_mschapv2_client-1-py3-none-any.whl Python 3 none any Details for radius_eap_mschapv2_client-1-py3-none-any.whl

Total release size: 23.3 kB

Release files / radius-eap-mschapv2-client-1.tar.gz

Download URL radius-eap-mschapv2-client-1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
912f042c6b78257954d9103638b82f8b2ab08210351ce716d544e51a923a3100
BLAKE2b-256 checksum
How to use checksums
6dbe768b4f88b7925c22ca7dd7e2bb436f6552b64431e64f569168134b0fdcdf
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / radius_eap_mschapv2_client-1-py3-none-any.whl

Download URL radius_eap_mschapv2_client-1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce74766828efc56d871d71caad0aa0b1dfafe713a0b43731ae0fc262ca05d130
BLAKE2b-256 checksum
How to use checksums
5141fbf9152de7404d422debe3a33bf29e7d73de9c547550c6b91353a0b1cc41
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for radius-eap-mschapv2-client 1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page