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

create_radius_account leaving password blank #19

Open
jondurrant opened this issue Feb 21, 2021 · 3 comments
Open

create_radius_account leaving password blank #19

jondurrant opened this issue Feb 21, 2021 · 3 comments

Comments

@jondurrant
Copy link

I'm trying to auto provision radius assigned vlan using MAC address. Calling create_radius_account with username and password being same results in blank password. Any suggestions?

@nickovs
Copy link
Owner

nickovs commented Feb 21, 2021

@jondurrant Can you provide some details regarding your setup, and in particular what version of the Unifi controller you are running?

@jondurrant
Copy link
Author

Sorry. Bit more detail on environment:
Controller: atag_5.12.66_13102 (Raspberry PI hosted)
Client: Python 3.9.1 being called from within Ansible Plugin. Ansible version 2.10.5

Snip of code line:
self.controler.create_radius_account(cMac, cMac, 13, 6, vlan=vlanS)

@josepmendoza
Copy link

josepmendoza commented Oct 26, 2022

Maybe is related with a typo that I've found trying to create radius accounts.
On controller logs:
<webapi-259> WARN sanitize - Invalid key exists in Account payload, key=x_passowrd
As the correct key is x_password.
On unifi.py file at line 53:
X_PASSWORD_FIX=fix_arg_names({"password":"x_passowrd"})
Changed to:
X_PASSWORD_FIX=fix_arg_names({"password":"x_password"})
And then it worked fine.

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

3 participants