pip install py-radius
$ python -m radiusHost [default: 'radius']: 1.1.1.1Port [default: 1812]: 1812Enter RADIUS Secret: s3cr3tEnter your username: foobarEnter your password: qux...Authentication Successful
For Python3 an error message may be triggered:
File "/home/user/venv-folder/lib/python3.8/site-packages/radius.py", line 583, in mainhost = raw_input("Host [default: 'radius']: ")NameError: name 'raw_input' is not defined
This is because Python3 uses "input" instead of "raw_input"
Editing the file "radius.py" and replacing "raw_input" with "input" fixes the issue. This is a quick fix but a long term solution should be used. This would be using a library written for Python3.
No comments:
Post a Comment