FreeRadius rlm_rest usage

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Feb 20 10:55:30 CET 2014


On 20 Feb 2014, at 09:28, Justin Menga <justin.menga at 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 at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140220/b927dc7c/attachment.pgp>


More information about the Freeradius-Users mailing list