pyunifi icon indicating copy to clipboard operation
pyunifi copied to clipboard

RADIUS functions and utilities

Open mtnocean opened this issue 5 years ago • 1 comments

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

mtnocean avatar Dec 07 '19 08:12 mtnocean

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

finish06 avatar Dec 20 '19 15:12 finish06