double quotes in Tunnel-Private-Group-Id

Marc Boisis marc.boisis at univ-lr.fr
Wed Mar 6 21:38:30 CET 2019


it works with:

if (reply:Tunnel-Private-Group-Id =~ /\"(.+)\"/) {
    update reply {
        Tunnel-Private-Group-Id = %{1}
    }
}

thanks

> On 6 Mar 2019, at 12:05, Peter Lambrechtsen <peter at crypt.nz> wrote:
> 
> Is it coming out of a database somewhere or hard-coded into a file.
> 
> If it's in a database then you shouldn't need to store the quotes in there.
> 
> Otherwise you could update the attribute and remove the double quote using
> regex.
> 
> On Wed, Mar 6, 2019 at 11:03 PM Marc Boisis <marc.boisis at univ-lr.fr> wrote:
> 
>> 
>> We migrate from freeradius 2.2.5 to a new server in 3.0.13
>> The attribute Tunnel-Private-Group-Id  come from same ldap server between
>> the two freeradius server .
>> 
>> With 2.2.5 :
>> Access-Accept Id 105 from 10.10.10.21:1812 to 10.10.10.21:44901 length 0
>>        Tunnel-Private-Group-Id:0 = "2"
>>        Tunnel-Medium-Type:0 = IEEE-802
>>        Tunnel-Type:0 = VLAN
>> 
>> 
>> 
>> 
>> With 3.0.13 :
>> Access-Accept Id 105 from 10.10.10.21:1812 to 10.10.10.21:44901 length 0
>> (20)   Tunnel-Type := VLAN
>> (20)   Tunnel-Medium-Type := IEEE-802
>> (20)   Tunnel-Private-Group-Id := "\"2\""
>> 
>> 
>> Why there is backslashed double quote in the value with the 3.0.13 and
>> what can I do to remove them, my clients doesn't understand them ?
>> Thanks
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list