---
name: "rlm_attr_rewrite"
section: "5"
platform: "linux"
package: "freeradius-common"
version: "2.2.5+dfsg-0.2+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/rlm_attr_rewrite"
---

# rlm\_attr\_rewrite(5)

FreeRADIUS Module

## NAME

rlm\_attr\_rewrite - FreeRADIUS Module

## DESCRIPTION

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:

- attribute

  The name of the attribute that you want to be rewritten

- searchfor

  String to be replaced.

- searchin

  Where to look for the attribute.  Valid values are: **packet,** **reply,** **proxy,** **proxy\_reply,** **config**

- replacewith

  String to replace "searchfor".

- append

  Set to yes or no.  If set to yes then the replace string will be appended to the original string.

- ignore\_case

  Set to yes or no.  Determines whether search will be case insensitive or case sensitive.

- new\_attribute

  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.

- max\_matches

  Set the max number of attributes to match against.  This is useful if you need to rewrite the value in multiple Vendor Specific Attributes.

## SECTIONS

**authorization,** **authentication,** **postauthentication,** **preaccounting,** **accounting,** **preproxy,** **postproxy**

## FILES

*/etc/raddb/radiusd.conf*

## SEE ALSO

[**radiusd**(8)](/radiusd/8.md), [**radiusd.conf**(5)](/radiusd.conf/5.md)

## AUTHOR

Chris Parker, cparker@segv.org
