Inquiry Regarding Backslash Handling in Reply-Message

平林 哲 Satoshi.Hirabayashi at soliton.co.jp
Thu Sep 11 02:22:48 UTC 2025


Dear Alan and Nick,

Thank you both for your helpful responses regarding the backslash 
handling in the Reply-Message attribute.

Your insights clarified the behavior and helped us understand how to 
adjust our configuration accordingly.

Best regards,
Satoshi Hirabayashi

On 2025/09/11 4:35, Nick Porter wrote:
> On 10/09/2025 18:34, Alan DeKok via Freeradius-Users wrote:
>> On Sep 3, 2025, at 7:09 AM, 平林 哲<Satoshi.Hirabayashi at soliton.co.jp> 
>> wrote:
>>> We have encountered an issue in FreeRADIUS version 3.2.8 where the 
>>> backslash (`\`) character in the `Reply-Message` configured for a 
>>> user is not correctly reflected in the response.
> 
> Some experimentation and digging into the code shows that when your 
> entries are of the form
> 
> radiusAttribute: Reply-Message += 'mess\\age'
> 
> the value being assigned to the attribute gets un-escaped twice - which 
> is why you're seeing four \ being reduced to one.
> 
> If you omit the '' around the value then it is only un-escaped once
> 
> i.e.
> 
> radiusAttribute: Reply-Message += mess\\\\age
> 
> will result in two \ in the final value.
> 
> As Alan indicated it's a non-trivial fix - the same escaping / un- 
> escaping routines are used by multiple code paths so there is risk of 
> changing existing behaviour if they are amended.
> 
> Nick
> 
> Nick Porter
> 
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list