radius-eap-mschapv2-client


Nameradius-eap-mschapv2-client JSON
Version 1.0.6 PyPI version JSON
download
home_pagehttps://github.com/mneitsabes/RADIUS-EAP-MSCHAPv2-Python-client
SummaryA RADIUS EAP-MSCHAPv2 client
upload_time2022-04-18 11:12:06
maintainer
docs_urlNone
authormneitsabes
requires_python>=3.6
license
keywords radius eap mschapv2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/pyradius/pyrad/issues/40)).

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

<pre>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))</pre>


# Requirements

This script has been written for Python 3.5 and newer.

You must install librairies with <code>pip3 install -r requirements.txt</code>.

# Credits

To make this implementation, I used the [daphp/radius PHP implementation](https://github.com/dapphp/radius).

The article [Understanding PEAP In-Depth](https://sensepost.com/blog/2019/understanding-peap-in-depth/) also helped me 
a lot.

Thanks to them.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mneitsabes/RADIUS-EAP-MSCHAPv2-Python-client",
    "name": "radius-eap-mschapv2-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "radius,EAP,MSCHAPv2",
    "author": "mneitsabes",
    "author_email": "mneitsabes@nulloz.be",
    "download_url": "https://files.pythonhosted.org/packages/4c/7e/753285f5725c46933dc687bec317cdd17270df646316bceb8e7f5679ee30/radius-eap-mschapv2-client-1.0.6.tar.gz",
    "platform": null,
    "description": "# RADIUS EAP-MSCHAPv2 and MSCHAPv2 Client\n\nA pure Python 3 RADIUS EAP-MSCHAPv2 and MSCHAPv2 client implementation.\n\n# Explanation\n\nThis project was developped because no RADIUS client library supports EAP-MSCHAPv2 (A ticket is open for the pyrad \nlibrary, see [here](https://github.com/pyradius/pyrad/issues/40)).\n\nThis library **only supports** EAP-MSCHAPv2 and (legacy) MSCHAPv2. This code has been tested with Microsoft Windows \nServer 2016 Network Policy Server and FreeRADIUS 3.0.25.\n\n# Installation\n\n\tpip3 install radius-eap-mschapv2-client\n\n# Usage\n\n<pre>from radius_eap_mschapv2 import RADIUS\n\nradius_host = '10.1.2.3'\nradius_secret = 'r4d!us_$3cr3t'\nradius_nas_ip = '10.3.2.1'\nradius_nas_id = 'mynas'\nusername = 'myuser'\npassword = 'mypassword!'\n\nr = RADIUS(radius_host, radius_secret, radius_nas_ip, radius_nas_id)\n\n# legacy MSCHAPv2 (no EAP)\nr = RADIUS(radius_host, radius_secret, radius_nas_ip, radius_nas_id, eap=False)\nprint(r.is_credential_valid(username, password))</pre>\n\n\n# Requirements\n\nThis script has been written for Python 3.5 and newer.\n\nYou must install librairies with <code>pip3 install -r requirements.txt</code>.\n\n# Credits\n\nTo make this implementation, I used the [daphp/radius PHP implementation](https://github.com/dapphp/radius).\n\nThe article [Understanding PEAP In-Depth](https://sensepost.com/blog/2019/understanding-peap-in-depth/) also helped me \na lot.\n\nThanks to them.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A RADIUS EAP-MSCHAPv2 client",
    "version": "1.0.6",
    "project_urls": {
        "Homepage": "https://github.com/mneitsabes/RADIUS-EAP-MSCHAPv2-Python-client"
    },
    "split_keywords": [
        "radius",
        "eap",
        "mschapv2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b53bc40c14118ba6cf3eb3e30d3fc0503d5e12066bc2b23c096d69177d573ce7",
                "md5": "2cc8b3a71ce5b4229eb19651c118e564",
                "sha256": "fcebe762c673fa3ed70cc99353a04a35c9356f7d46896eded2ccdf31b832e278"
            },
            "downloads": -1,
            "filename": "radius_eap_mschapv2_client-1.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2cc8b3a71ce5b4229eb19651c118e564",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 14028,
            "upload_time": "2022-04-18T11:12:04",
            "upload_time_iso_8601": "2022-04-18T11:12:04.552608Z",
            "url": "https://files.pythonhosted.org/packages/b5/3b/c40c14118ba6cf3eb3e30d3fc0503d5e12066bc2b23c096d69177d573ce7/radius_eap_mschapv2_client-1.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4c7e753285f5725c46933dc687bec317cdd17270df646316bceb8e7f5679ee30",
                "md5": "2b16a2a7eb42cdddd23c68d0023ec189",
                "sha256": "543905f8c7e0d3291a0f6d6b13bacf1997f8ea773b74e5684c3d20a3f2db5c1e"
            },
            "downloads": -1,
            "filename": "radius-eap-mschapv2-client-1.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "2b16a2a7eb42cdddd23c68d0023ec189",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 12976,
            "upload_time": "2022-04-18T11:12:06",
            "upload_time_iso_8601": "2022-04-18T11:12:06.613063Z",
            "url": "https://files.pythonhosted.org/packages/4c/7e/753285f5725c46933dc687bec317cdd17270df646316bceb8e7f5679ee30/radius-eap-mschapv2-client-1.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-04-18 11:12:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mneitsabes",
    "github_project": "RADIUS-EAP-MSCHAPv2-Python-client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "radius-eap-mschapv2-client"
}
        
Elapsed time: 4.24128s