-
Notifications
You must be signed in to change notification settings - Fork 231
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
Rotate PPSKs #264
Comments
When you say you get a 403 error, how were you trying that? Can you share the code you used? I’ll try to find some time in the next couple of days to see whether we can implement this in the class. |
this was the PHP I ended up with after giving up, but couldnt make the part work to update the ppsk&vlan combination.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
Would it be possible to list and edit ppsks?
I can list them from SSH / Mongodb and also via the Unifi API
ssh
$sshFetchPPSKs = "sshpass -p '$UDM_PASS' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $UDM_USER@$UDM_IP << 'EOF' mongo --port 27117 ace --eval 'printjson(db.wlanconf.findOne({\"_id\": ObjectId(\"$WLAN_ID\")}, {\"private_preshared_keys\":1}))' EOF";
and list them via api:
/proxy/network/api/s/default/rest/wlanconf
But I can't edit them without the message of 403.
output example of API:
[ {"networkconf_id":"602277319da96b04de9db1f4","password":"SecretPass123","name":"VLAN-1f4"}, {"networkconf_id":"63611a45d4c36171ee5dd6c5","password":"AnotherPass456","name":"VLAN-6c5"} ]
Let me know if this is a feature that can be added!
The text was updated successfully, but these errors were encountered: