Skip to main content

RADIUS EAP-MSCHAPv2 and MSCHAPv2 Client

A pure Python 3 RADIUS EAP-MSCHAPv2 and 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 and (legacy) MSCHAPv2. This code has been tested with Microsoft Windows Server 2016 Network Policy Server and FreeRADIUS 3.0.25.

Installation

pip3 install radius-eap-mschapv2-client

Usage

from radius_eap_mschapv2 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)

# legacy MSCHAPv2 (no EAP)
r = RADIUS(radius_host, radius_secret, radius_nas_ip, radius_nas_id, eap=False)
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.0.6

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.0.6
File Size Uploaded Provenance Actions
radius-eap-mschapv2-client-1.0.6.tar.gz 13.0 kB Without provenance Details for radius-eap-mschapv2-client-1.0.6.tar.gz

Built distribution (wheel)

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

Total release size: 27.0 kB

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

Download URL radius-eap-mschapv2-client-1.0.6.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
543905f8c7e0d3291a0f6d6b13bacf1997f8ea773b74e5684c3d20a3f2db5c1e
BLAKE2b-256 checksum
How to use checksums
4c7e753285f5725c46933dc687bec317cdd17270df646316bceb8e7f5679ee30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.9

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

Download URL radius_eap_mschapv2_client-1.0.6-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcebe762c673fa3ed70cc99353a04a35c9356f7d46896eded2ccdf31b832e278
BLAKE2b-256 checksum
How to use checksums
b53bc40c14118ba6cf3eb3e30d3fc0503d5e12066bc2b23c096d69177d573ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.9

Security for radius-eap-mschapv2-client 1.0.6

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