CoA -> REST

adrian.p.smith at bt.com adrian.p.smith at bt.com
Tue Dec 20 11:40:55 CET 2016


Thanks for the tip. I tried this and the server does now start up.

When I send it a CoA however, I see no sign of the REST module being called:

(0) Received CoA-Request Id 217 from 127.0.0.1:45490 to 127.0.0.1:3799 length 38
(0)   User-Name = "adrian"
(0)   Calling-Station-Id = "aa-bb-cc"
(0) Sent CoA-ACK Id 217 from 127.0.0.1:3799 to 127.0.0.1:45490 length 0
(0) Finished request

Anything else I've missed?

Thanks again.

Adrian


-----Original Message-----
From: Freeradius-Users [mailto:freeradius-users-bounces+adrian.p.smith=bt.com at lists.freeradius.org] On Behalf Of Pshem Kowalczyk
Sent: 20 December 2016 10:30
To: FreeRadius users mailing list
Subject: Re: CoA -> REST

Hi,

I haven't tried this, but it should work:

recv-coa {
        rest.authenticate
}

this will call the 'authenticate' section of the rest module (you'll need another instance of the rest module, since you use auth already)

kind regards
Pshem


On Tue, 20 Dec 2016 at 22:37 <adrian.p.smith at bt.com> wrote:

> Please can someone say whether it's possible to receive a CoA and pass 
> that into the REST module?
>
> I tried a simple configuration using 3.0.11 and got a startup error:
>
> /home/adrian/freeradius-server-3.0.11/etc/raddb/sites-enabled/coa[38]:
> "rest" modules aren't allowed in 'recv-coa' sections -- they have no 
> such method.
> /home/adrian/freeradius-server-3.0.11/etc/raddb/sites-enabled/coa[23]:
> Errors parsing recv-coa section.
>
> We use the REST module quite extensively for auth and acct requests 
> and would like to do similar for coa.
>
> Thanks,
>
> Adrian Smith
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list