jmu-openconnect


Namejmu-openconnect JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://tabulate.tech/
SummaryWrapper script around openconnect forJMU VPN authentication on Linux.
upload_time2024-02-20 01:35:38
maintainer
docs_urlNone
authorTabulateJarl8
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # JMU OpenConnect

<p align="center">
	<a href="https://badge.fury.io/py/jmu-openconnect"><img alt="PyPI" src="https://img.shields.io/pypi/v/jmu-openconnect" /></a>
	<a href="https://pepy.tech/project/jmu-openconnect"><img alt="Downloads" src="https://pepy.tech/badge/jmu-openconnect" /></a>
	<a href="https://github.com/TabulateJarl8/jmu-openconnect/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/jmu-openconnect.svg" /></a>
	<a href="https://github.com/TabulateJarl8/jmu-openconnect/graphs/commit-activity"><img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" /></a>
	<a href="https://github.com/TabulateJarl8/jmu-openconnect/issues/"><img alt="GitHub Issues" src="https://img.shields.io/github/issues/TabulateJarl8/jmu-openconnect.svg" /></a>
	<a href="https://github.com/TabulateJarl8"><img alt="GitHub followers" src="https://img.shields.io/github/followers/TabulateJarl8?style=social" /></a>
	<br>
	<a href="https://ko-fi.com/L4L3L7IO2"><img alt="Kofi Badge" src="https://ko-fi.com/img/githubbutton_sm.svg" /></a>
</p>

This is a wrapper script around openconnect to help with authentication for the JMU VPN on Linux. Openconnect used to work fine until Ivanti purchased Pulse Secure, and then that broke something. This script opens up a web browser to allow the user to authenticate with Duo, and then grabs the DSID cookie to use for openconnect authentication.

## Installation
This script can easily be installed with pip or [pipx](https://pipx.pypa.io/stable/) with the following commands:

```console
$ pipx install jmu-openconnect
$ # OR
$ pip3 install jmu-openconnect
```

## Usage
Once the script is installed, you can run the following command in your terminal:

```console
$ jmu-openconnect
```

You can also specify a username and password to be automatically typed in, however you will still have to do 2FA manually. You can specify one or the other or both, and if both are specified, the "Log in" button will automatically be clicked.

```console
$ jmu-openconnect -u <EID> -p <PASSWORD>
```

You can alternatively specify the `--prompt-password` (or `-P`) option instead of using `-p`, which will prompt the user for a password without echoing, much like sudo. This is more secure as your password won't be saved in your command line history.

JMU OpenConnect defaults to using firefox, but you can easily change which browser you're using by specifying `--browser`, which accepts `firefox`, `chrome`, or `edge`.

The first time that you launch JMU OpenConnect, it may take a little longer than normal, as selenium has to download and cache your webdriver.

```console
$ jmu-openconnect --browser chrome
```

To see all of the available options, run `jmu-openconnect --help`.

## Dependencies
This script just requires openconnect and [selenium](https://pypi.org/project/selenium/). If you are having problems, check the [Selenium Python Documentation](https://selenium-python.readthedocs.io/installation.html#drivers0).

## DSID Cookie was not found
If you get the error that the DSID cookie was not found, then you may be logged on in multiple places at once. Navigate to https://vpn.jmu.edu and after signing in, you should see a screen like this:

![Maximum number of open user sessions screenshot](img/multi_sign_in.png)

If this is the case, just select the box to remove that sign in and press "Close Selected Sessions and Log in". After this, you will need to press the log out button in the upper right corner of the VPN website, and then you can retry the script. If this is not the problem, try running the script with `jmu-openconnect --debug-auth-error` to see the error for a longer period of time.

            

Raw data

            {
    "_id": null,
    "home_page": "https://tabulate.tech/",
    "name": "jmu-openconnect",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "TabulateJarl8",
    "author_email": "tabulatejarl8@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f8/6c/7f7159de34f6d5ed38d25426c97e890aa52bb7caf0b823958d19648a71ee/jmu_openconnect-0.3.0.tar.gz",
    "platform": null,
    "description": "# JMU OpenConnect\n\n<p align=\"center\">\n\t<a href=\"https://badge.fury.io/py/jmu-openconnect\"><img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/jmu-openconnect\" /></a>\n\t<a href=\"https://pepy.tech/project/jmu-openconnect\"><img alt=\"Downloads\" src=\"https://pepy.tech/badge/jmu-openconnect\" /></a>\n\t<a href=\"https://github.com/TabulateJarl8/jmu-openconnect/blob/master/LICENSE\"><img alt=\"License\" src=\"https://img.shields.io/pypi/l/jmu-openconnect.svg\" /></a>\n\t<a href=\"https://github.com/TabulateJarl8/jmu-openconnect/graphs/commit-activity\"><img alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /></a>\n\t<a href=\"https://github.com/TabulateJarl8/jmu-openconnect/issues/\"><img alt=\"GitHub Issues\" src=\"https://img.shields.io/github/issues/TabulateJarl8/jmu-openconnect.svg\" /></a>\n\t<a href=\"https://github.com/TabulateJarl8\"><img alt=\"GitHub followers\" src=\"https://img.shields.io/github/followers/TabulateJarl8?style=social\" /></a>\n\t<br>\n\t<a href=\"https://ko-fi.com/L4L3L7IO2\"><img alt=\"Kofi Badge\" src=\"https://ko-fi.com/img/githubbutton_sm.svg\" /></a>\n</p>\n\nThis is a wrapper script around openconnect to help with authentication for the JMU VPN on Linux. Openconnect used to work fine until Ivanti purchased Pulse Secure, and then that broke something. This script opens up a web browser to allow the user to authenticate with Duo, and then grabs the DSID cookie to use for openconnect authentication.\n\n## Installation\nThis script can easily be installed with pip or [pipx](https://pipx.pypa.io/stable/) with the following commands:\n\n```console\n$ pipx install jmu-openconnect\n$ # OR\n$ pip3 install jmu-openconnect\n```\n\n## Usage\nOnce the script is installed, you can run the following command in your terminal:\n\n```console\n$ jmu-openconnect\n```\n\nYou can also specify a username and password to be automatically typed in, however you will still have to do 2FA manually. You can specify one or the other or both, and if both are specified, the \"Log in\" button will automatically be clicked.\n\n```console\n$ jmu-openconnect -u <EID> -p <PASSWORD>\n```\n\nYou can alternatively specify the `--prompt-password` (or `-P`) option instead of using `-p`, which will prompt the user for a password without echoing, much like sudo. This is more secure as your password won't be saved in your command line history.\n\nJMU OpenConnect defaults to using firefox, but you can easily change which browser you're using by specifying `--browser`, which accepts `firefox`, `chrome`, or `edge`.\n\nThe first time that you launch JMU OpenConnect, it may take a little longer than normal, as selenium has to download and cache your webdriver.\n\n```console\n$ jmu-openconnect --browser chrome\n```\n\nTo see all of the available options, run `jmu-openconnect --help`.\n\n## Dependencies\nThis script just requires openconnect and [selenium](https://pypi.org/project/selenium/). If you are having problems, check the [Selenium Python Documentation](https://selenium-python.readthedocs.io/installation.html#drivers0).\n\n## DSID Cookie was not found\nIf you get the error that the DSID cookie was not found, then you may be logged on in multiple places at once. Navigate to https://vpn.jmu.edu and after signing in, you should see a screen like this:\n\n![Maximum number of open user sessions screenshot](img/multi_sign_in.png)\n\nIf this is the case, just select the box to remove that sign in and press \"Close Selected Sessions and Log in\". After this, you will need to press the log out button in the upper right corner of the VPN website, and then you can retry the script. If this is not the problem, try running the script with `jmu-openconnect --debug-auth-error` to see the error for a longer period of time.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Wrapper script around openconnect forJMU VPN authentication on Linux.",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://tabulate.tech/",
        "Repository": "https://github.com/TabulateJarl8/jmu-openconnect"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "81c186d3d8800748b0b605e7f93783f03fea49c86bde917ad4228e0e459026e5",
                "md5": "e186f17fc1f6dcd5688cb25880d55318",
                "sha256": "484db079f223aab27dc8d5ebb70e7fbf3e8f0d85ab19dc7e26ef46b294e68bc9"
            },
            "downloads": -1,
            "filename": "jmu_openconnect-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e186f17fc1f6dcd5688cb25880d55318",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 9428,
            "upload_time": "2024-02-20T01:35:37",
            "upload_time_iso_8601": "2024-02-20T01:35:37.246242Z",
            "url": "https://files.pythonhosted.org/packages/81/c1/86d3d8800748b0b605e7f93783f03fea49c86bde917ad4228e0e459026e5/jmu_openconnect-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f86c7f7159de34f6d5ed38d25426c97e890aa52bb7caf0b823958d19648a71ee",
                "md5": "145b4f37f8f946ebc943f21be1b7dba1",
                "sha256": "436873af34e60318f977abbd4088fc9ef0bb2f5855b726da2ada1794c5c5926d"
            },
            "downloads": -1,
            "filename": "jmu_openconnect-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "145b4f37f8f946ebc943f21be1b7dba1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 7749,
            "upload_time": "2024-02-20T01:35:38",
            "upload_time_iso_8601": "2024-02-20T01:35:38.461449Z",
            "url": "https://files.pythonhosted.org/packages/f8/6c/7f7159de34f6d5ed38d25426c97e890aa52bb7caf0b823958d19648a71ee/jmu_openconnect-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-20 01:35:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "TabulateJarl8",
    "github_project": "jmu-openconnect",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "jmu-openconnect"
}
        
Elapsed time: 0.17149s