When using DOUBLE_QUOTED_STRING, passwords with '\"' may not work
g4-lisz at tonarchiv.ch
g4-lisz at tonarchiv.ch
Wed Sep 13 13:09:59 UTC 2023
P.S. IMHO this behavior comes from getthing() in src/lib/token.c
September 13, 2023 2:00 PM, g4-lisz at tonarchiv.ch wrote:
> Alan,
>
> but he's right! The behavior is really not as one would expect. At least different from a shell and
> C:
>
> "some\word" in config => some\word
> "some\\word" in config => some\\word
>
> "some\\\"word" in config => some\\"word (in a shell or C this would be the one)
>
> So how to escape some\"word?
> "some\\"word" in config => syntax error
>
> It only works with single quotes...
>
> Cheers
>
> September 13, 2023 1:35 PM, "Alan DeKok" <aland at deployingradius.com> wrote:
>
>> On Sep 12, 2023, at 11:31 PM, 平林 哲 <Satoshi.Hirabayashi at soliton.co.jp> wrote:
>>
>>> Summary of results.
>>
>> You keep posting this. Why?
>>
>> Doing that means you're stuck on one part of the problem. You should instead work towards
>> understanding the problem, which is more likely to lead you to a solution.
>>
>>> I feel that this behaviour is not correct.
>>
>> You're wrong. I explained why. Go back and read the messages.
>>
>>> Is there any way to correct this behaviour?
>>
>> You have source code. You can fix it if you don't like the behavior.
>>
>> We are not going to change the behavior of FreeRADIUS for everyone on the planet because you don't
>> agree with 30+ year-old rules on string quoting and escaping.
>>
>> Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list