[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Problem with backslash
From:       Martin_Grůza <martin () netcom ! cz>
Date:       2020-02-27 11:56:29
Message-ID: CBBAB699-5241-4278-B8CE-0B3BDEE2DDB9 () netcom ! cz
[Download RAW message or body]

Problem solved, I add suffix after backslash.

Thank you.

> 26. 2. 2020 v 19:02, Martin Grůza <martin@netcom.cz>:
> 
> 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@deployingradius.com>:
> > 
> > On Feb 26, 2020, at 3:32 AM, Martin Grůza <martin@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
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic