Using REST to Original COA
aland at deployingradius.com
Sat Jul 3 21:27:57 CEST 2021
> On Jul 3, 2021, at 3:21 PM, Mohammad Mahefooz <mahefooz at crashcoding.in> wrote:
> As we are using REST module to handle AAA, planning to use the same to originate COA as well. While going through the archives, found that Alan suggested, we can use rest module in originate coa virtual server.The issue is how to configure it. Usually for AAA, we define the rest module with connect uri, method (get or post), parameters etc. And these gets triggered when FR sends request to REST server. But in the case of originate coa, as the trigger will come from REST server side,
FreeRADIUS isn't a REST client.
> what all REST server need to send and how FR will handle it?
The REST server needs to send a CoA packet/
> And I believe trigger will happen when getting Accounting packet post from FR to REST server, do we need to send COA parameters as reply to the same Accounting request? Read the entire originate coa file multiple times, but still couldn't understand how to resolve this.
If the accounting information is in SQL, see raddb/sites-available/coa-relay
If the accounting data isn't in SQL, you'll have to find the data, and manually add the necessary attributes.
More information about the Freeradius-Users