Freeradius module
The rlm_attr_rewrite module provides functionality to rewrite data in radius packets on the fly. This can be useful in authorization and accounting functions.
The main configuration items to be aware of are:
The name of the attribute that you want to be rewritten
String to be replaced.
Where to look for the attribute. Valid values are: packet, reply, proxy, proxy_reply, config
String to replace "searchfor".
Set to yes or no. If set to yes then the replace string will be appended to the original string.
Set to yes or no. Determines whether search will be case insensitive or case sensitive.
Set to yes or no. If set to yes, then new attribute will be created with values from "searchin" and "replacewith". Other options will be ignored.
Set the max number of attributes to match against. This is useful if you need to rewrite the value in multiple Vendor Specific Attributes.
authorization, authentication, postauthentication, preaccounting, accounting, preproxy, postproxy
/etc/raddb/radiusd.conf
Chris Parker, [email protected]