Problem with backslash
Martin Grůza
martin at netcom.cz
Wed Feb 26 19:02:09 CET 2020
I’m setting this attribute: NTLM-Group-Required = “DOMAIN\vpnaccess” and in mschap I have: %{NTLM-Group-Required}
Debug:
(0) mschap: EXPAND --require-membership-of=%{NTLM-Group-Required}
(0) mschap: --> --require-membership-of=ZSNEMCICKY\\ucitele
Winbindd lookupname failed to resolve ZSNEMCICKY\\ucitele into a SID!
I want only one backslash.
Thank you.
> 26. 2. 2020 v 13:43, Alan DeKok <aland at deployingradius.com>:
>
> On Feb 26, 2020, at 3:32 AM, Martin Grůza <martin at netcom.cz> wrote:
>>
>> I have got problem with backslash when I set it to attribute and expand it to string, there are double backslash, but I want only one backslash.
>
> If only there was some kind of debug output which showed what the server was doing...
>
> But this isn't a difficult issue. Double-quoted strings use backslashes for escaping. i.e. "\n". This means that backslashes also need to be escaped: "\\"
>
> This is how *all* programming languages work, include shell scripts, Perl, Python, Java, C, ...
>
> Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list