-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi there!
First of all, thanks for this library — it's been very helpful in automating our UrBackup workflows
I'm running into an issue when using setClientSettings() to assign a client to a group by setting the memberof key
await server.setClientSettings({ clientName: 'Client_XYZ', key: 'memberof', newValue: a094, });
This correctly updates the group assignment, but after this change, the client starts behaving incorrectly.
The group is updated successfully — as you can see in the image attached — but it ends up breaking other settings such as internet_authkey and archive
After debugging, I noticed that setClientSettings() fetches all client settings via getClientSettings()
After comparing with what the UI does when assigning a client to a group, I found that the frontend sends a much more complete payload, even when only changing the group. For example, it sends something like:
sa=clientsettings_save &t_clientid=63 &internet_authkey=O111111111118 &internet_authkey.use=2 &archive= &archive.use=2 &memberof=10 &ses=JmvXm36111111BHEBkLix9FBm &lang=en
Let me know if I can help test or provide more details!
Thanks again for the awesome work on this tool