-
Notifications
You must be signed in to change notification settings - Fork 152
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
Access to WLAN password #94
Comments
The key to look for is x_passphrase. |
@malle-pietje , there is no Is this field only accessible through the Unifi API Client? Edit: The Unifi API Client also doesn't list this field with the |
@KetchupBomb it should actually be there if the SSID is protected with a WPA2 password/passphrase. |
@KetchupBomb If this is password to be entered through the captive portal you can find it in the guest_access section of the list site settings output. I personally find the new interface very confusing when it comes to setting up guest networks and always switch to the classic interface to get access to all controls. |
@malle-pietje, this is a WPA2 network that I made on the UDM-Pro web UI. It is not associated with any captive or guest portals. And the "x_passphrase" is definitely not present -- both the API Browser web UI, and the API Client do not list this key for any of my WiFi networks. Is there a PHP recipe I can run to convince you? Is there additional information I can provide to debug why it's not showing when it seems like it should be? |
No need to convince me😉 Can you share a screenshot of the list of wireless networks using the classic interface? |
Also, which version of the Network Application are you running and which UDM firmware version? |
The same applies to our software-based controller running version 6.4.54. |
The only remaining thing I can think of is the permissions of the admin account you're using to connect through the API. |
You're right. I set the account to be "View Only" initially. When I switch it to "Administrator" (or "Site Admin"), I am able to see the x_password field. I may have missed documentation that points this out (sorry!). It's strange that this nuance of read vs write permissions causes some fields to display or not. 🤷♂️ Thanks for your patience and help. |
Thanks for the feedback, good to hear. Will add a note to the README for the PHP API client to reflect your findings (not something I’d seen before myself). |
@malle-pietje, btw, I bet this is exactly what was happening in Art-of-WiFi/UniFi-API-client#129. cc @NickDunas |
Yes, correct. I've added a note on this to the README files for both the API Client and the API Browser. Thanks for your help with this! |
When you load the Unifi Controller > Network web UI, you can navigate to WiFi, load an individual network, and peek at the password in plain text:
Within the Unifi API Browser, the closest Collection I can find is list wlan configuration, but there is no reference to the WLAN password in the output.
Is there another Collection I should be viewing? Is this field something the Unifi API Browser can gain access to?
The text was updated successfully, but these errors were encountered: