Using RFC 5997 / Status in Module

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Wed Apr 21 17:19:18 CEST 2021


On 21.04.21 16:58, Alan DeKok wrote:
> On Apr 21, 2021, at 10:40 AM, g4-lisz at tonarchiv.ch wrote:
>> We wrote a Freeradius module which collects data over some less reliable
>> protocol (talking to property management systems / PMS).
>>
>> It would be very handy if we could add some PMS related data (e.g.
>> connection fail count) to the server's status response.
>>
>> Is there some documentation / best practice examples on how to implement
>> this?
>   There's not a lot of documentation on "how to do coding in FR".  That being said, this shouldn't be terribly difficult.
>
>   Your module can detect that the packet is Status-Server by looking at
>
> 	request->packet->code == PW_CODE_STATUS_SERVER
>
>   See src/main/stats.c for some sample code which look for attributes, and then creates attributes in the reply.
>
>   Alan DeKok.

Hi Alan

Thank you very much for the quick reply and the hints!

Now I have an idea where to start.

Cheers
Till




More information about the Freeradius-Users mailing list