20 Feb
2014
20 Feb
'14
4:55 a.m.
On 20 Feb 2014, at 09:28, Justin Menga <justin.menga@gmail.com> wrote: > Hi > > Are there any samples anywhere on how to use the RLM REST module? No. There's a demo perl server: https://github.com/FreeRADIUS/freeradius-server/blob/master/src/modules/rlm_rest/demo.pl And the config options are here: https://github.com/FreeRADIUS/freeradius-server/blob/master/src/modules/rlm_rest/rlm_rest.c#L64 HTTP codes returned from the server are translated into FreeRADIUS rcodes. For Autz/Auth: 404/410 - Notfound 403 - Userlock 401 - Reject 204 - Ok (no body decode) 200-299 - Ok (conditional on body decode) 400-499 - Invalid * - Fail For Accounting: >= 500 - Fail 204 - Ok (no body decode) 200-299 - Ok (conditional on body decode) * - Invalid To use JSON decode you'll need to build the module with c-json. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2