within radsecproxy.conf you can add simple rewrite rules with
"addVendorAttribute <vendor>:<attribute>:<value>"
Within a posting from 2010 I found the following explanation:
"with all numerical values just like with the other attribute configuration options."
but "value" is a string in fact
i.e.:
rewrite miktest {
addVendorAttribute 14988:27:2000
addVendorAttribute 14988:26:0
}
- When I radtest with a client (with freeradius) I get:
Received Access-Accept
:
Mikrotik_Wireless_VLANIDtype = 842018864
Attr-26.14988.26 = 0x30
=> So, the number 2000 is transformed into 842018864 and 0 is transformed into 0x30.
(Looking at /usr/share/freeradius/dictionary.mikrotik:
ATTRIBUTE Mikrotik_Wireless_VLANID 26 integer
ATTRIBUTE Mikrotik_Wireless_VLANIDtype 27 integer)
So I would like to pass 2000 and 0 as numbers to freeradius. How can I accomplish this? It would be great if someone could give some hints
Regards
Michael