Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
[SOLVED] Issue with bulk removing FreeRADIUS users
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Issue with bulk removing FreeRADIUS users (Read 744 times)
maekar
Newbie
Posts: 23
Karma: 1
[SOLVED] Issue with bulk removing FreeRADIUS users
«
on:
November 30, 2023, 11:24:12 am »
Hi!
We need to remove all users from the FreeRADIUS package once per year (to update from CSV later).
The problem is that selecting all of them and press "Delete selected" button in the GUI doesn't work. That only delete the last user. And if you select more than one user manually, the same thing happens.
We have more than 1000 users and deleting them one by one does not seem like an appropriate solution.
Can anyone replicate the problem? Is there any solution? Thanks in advance!
«
Last Edit: November 30, 2023, 01:52:08 pm by maekar
»
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1601
Karma: 176
Re: Issue with bulk removing FreeRADIUS users
«
Reply #1 on:
November 30, 2023, 11:34:29 am »
Maybe as an alternative, that sounds like a job you could do more efficiently with using the API probably?
https://docs.opnsense.org/development/api/plugins/freeradius.html
By using the client controller:
https://docs.opnsense.org/development/api/plugins/freeradius.html#id2
Logged
Hardware:
DEC740
maekar
Newbie
Posts: 23
Karma: 1
Re: Issue with bulk removing FreeRADIUS users
«
Reply #2 on:
November 30, 2023, 01:51:57 pm »
Well, I did some testing with few users when I opened the thread.
Now I have done it with 1000 users and the result is quite different. By pressing the "apply" button (previously it was not pressed or it was not there), after a few seconds, a quite bunch of users are removed. Sometimes 100, sometimes 200. By repeating the process several times, the goal is achieved. Fair enough.
The funny thing is, the closer you get to zero users, the fewer users are removed when you hit apply.
The thread can be closed, thanks for the reply @Monviech.
«
Last Edit: November 30, 2023, 01:59:04 pm by maekar
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
[SOLVED] Issue with bulk removing FreeRADIUS users