[rlm_rest] do not translate attribute values

Jorge Pereira jpereira at freeradius.org
Thu Dec 17 17:57:29 CET 2020


> On 17 Dec 2020, at 09:25, Michael Schneider <michael.schneider at onway.ch> wrote:
> 
> Hi
> 
> I have created a REST server to process incoming RADIUS requests. During development I noticed that some attributes signal the "wrong" type. I think this is due to xlat.
> 
> For example, the attributes "Tunnel-Type" and "Tunnel-Medium-Type" are both integers, but their values are serialized as strings:
> 
> "Tunnel-Type": {"type": "integer", "value": ["VLAN"]},
> "Tunnel-Medium-Type": {"type": "integer", "value": ["IEEE-802"]}
> 


Which version are you running? Where is the debug output? Please, keep in mind https://wiki.freeradius.org/guide/Users-Mailing-List <https://wiki.freeradius.org/guide/Users-Mailing-List>


> This behavior makes it difficult to write a parser without knowing the numeric value of "VLAN" and "IEEE-802". Is there a configuration parameter that prevents the rlm_rest module from translating attribute values?
> 
> Thanks in advance,
> Michael-
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list