http://lists.freeradius.org/pipermail/freeradius-users/2018-July/092166.html From: Smith,AP,Adrian,TEC5 R Sent: 12 July 2018 17:06 To: FreeRadius users mailing list Subject: REST module post-auth I'm trying to use the rest module in the post-auth section. It seems that if you simply use body = 'post', you get the Access-Request sent to the REST endpoint, which is nice. I've also worked out that I can cherry pick the reply and request like this: data = 'Calling-Station-Id=%{&request:Calling-Station-Id}&User-Name=%{&reply:User-Name}&Session-Timeout=%{&reply:Session-Timeout}&Idle-Timeout=%{&reply:Idle-Timeout}&Cisco-AVPair=%{&reply:Cisco-AVPair}&Cisco-SSG-Account-Info=%{&reply:Cisco-SSG-Account-Info[0]}&Cisco-SSG-Account-Info=%{&reply:Cisco-SSG-Account-Info[1]}' Is there any way to get ALL of the request and all of the reply without having to select individual AVPs ? And if so, could they be qualified so the REST service can tell which ones are from the Request and the Response? Thanks in advance. Adrian
On Jul 12, 2018, at 12:06 PM, <adrian.p.smith@bt.com> <adrian.p.smith@bt.com> wrote:
http://lists.freeradius.org/pipermail/freeradius-users/2018-July/092166.html
Use JSON as the body type to get all the pairs in the request list, or use the %{pairs:<ref>} expansion in the data config item. The pairs won't be & delimited, but you can always break them apart in the REST API. -Arran
Many thanks - does the job. -----Original Message----- From: Freeradius-Users [mailto:freeradius-users-bounces+adrian.p.smith=bt.com@lists.freeradius.org] On Behalf Of Arran Cudbard-Bell Sent: 12 July 2018 17:19 To: FreeRadius users mailing list Subject: Re: REST module post-auth
On Jul 12, 2018, at 12:06 PM, <adrian.p.smith@bt.com> <adrian.p.smith@bt.com> wrote:
http://lists.freeradius.org/pipermail/freeradius-users/2018-July/092166.html
Use JSON as the body type to get all the pairs in the request list, or use the %{pairs:<ref>} expansion in the data config item. The pairs won't be & delimited, but you can always break them apart in the REST API. -Arran
participants (2)
-
adrian.p.smith@bt.com -
Arran Cudbard-Bell