How to escape values in radclient?

rany rany2 at riseup.net
Sun May 7 18:45:33 UTC 2023


I tried with this file named "test.txt":

Framed-Protocol = PPP
Message-Authenticator = 0x00
NAS-IP-Address = redacted
NAS-Port = 0
Service-Type = Framed-User
User-Name = "\x72\x61\x6e\x79"
#User-Name = "rany"
User-Password = "mypassword"

Hex escaped variant does not work, I ran it like so: `radclient -f 
test.txt 127.0.0.1 auth testing123`

On 5/7/23 21:38, Alan DeKok wrote:
> On May 7, 2023, at 6:45 PM, rany <rany2 at riseup.net> wrote:
>> Thank you, is there any chance that hex escapes could be made to work with radclient?
>>
>> This is what tipped me off and made me think that the normal rules do not apply here.
>    Hex escapes work.  Try using hex escapes in a simple file that you create with a text editor.  They will work.
>
>    The issue is that you're using escapes in a double-quoted string, and the shell is parsing the escapes before passing them to radclient.
>
>    Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list