Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RADIUS functions and utilities #52

Open
mtnocean opened this issue Dec 7, 2019 · 1 comment
Open

RADIUS functions and utilities #52

mtnocean opened this issue Dec 7, 2019 · 1 comment

Comments

@mtnocean
Copy link

mtnocean commented Dec 7, 2019

Hi,
I've written some code for setting RADIUS usernames and passwords along with some demo Python code. Please tell me if you would like me to submit a pull request.
Paul

https://github.com/mtnocean/pyunifi/tree/radius

functions:

  • get_radius_users(self)
  • add_radius_user(self, name, password)
  • update_radius_user(self, name, password, id)
  • delete_radius_user(self, id)

support functions for delete_radius_user():

  • _delete(self, url, params=None)
  • _api_delete(self, url, params=None)

utilities:

  • unifi-ls-radius - lists all usernames/passwords
  • unifi-save-radius - saves all usernames/passwords to a .csv file
  • unifi-copy-radius - copies all usernames/passwords from one site to another

in progress:

  • unifi-upload-radius - uploads a .csv file of usernames/passwords to a site
@finish06
Copy link
Owner

@mtnocean Indeed. Please submit a PR. I will look it all over, and check everything out. Have a great day.

ChrisMandich added a commit to ChrisMandich/pyunifi that referenced this issue Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants