Difference in escaping character

Peter Balsianok balsianok.peter at gmail.com
Thu Apr 23 15:22:06 CEST 2015


Hi,

I have compared reply attributes between version 2.2.6 & 3.0.8 ( for the
same request), i found little difference for Cisco-AVPair attribute
(escaping \\n vs \n).

Is it correct ?

Debug log (version 3.0.8):
...
(0) perl: &reply:Cisco-AVPair += $RAD_REPLY{'Cisco-AVPair'} ->
'lcp:interface-config=ip vrf forwarding TOPVAR \nip unnumbered Loopback1'
(0) perl: &reply:Cisco-AVPair += $RAD_REPLY{'Cisco-AVPair'} ->
'ip:dns-servers=10.248.136.20 10.18.86.16'
...
(0)       [perl] = ok
(0)   } # post-auth = ok
(0) Login OK: [421908290143 at TOPVAR/<CHAP-Password>] (from client localhost
port 2197 cli 421908290143)
(0) Sent Access-Accept Id 173 from 127.0.0.1:1812 to 127.0.0.1:36008 length
0
(0)   Framed-IP-Netmask = 255.255.255.255
(0)   Framed-IP-Address = 172.30.72.54
(0)   Cisco-AVPair += 'lcp:interface-config=ip vrf forwarding TOPVAR \\nip
unnumbered Loopback1'
(0)   Cisco-AVPair += 'ip:dns-servers=10.248.136.20 10.18.86.16'
(0)   Service-Type = Framed-User
(0)   Framed-Protocol = PPP
(0) Finished request


Debug log (version 2.2.6):
+group post-auth {
...
rlm_perl: Added pair Cisco-AVPair = lcp:interface-config=ip vrf forwarding
TOPVAR \nip unnumbered Loopback1
rlm_perl: Added pair Cisco-AVPair = ip:dns-servers=10.248.136.20 10.18.86.16
++[perl] = ok
+} # group post-auth = ok
Sending Access-Accept of id 3 to 127.0.0.1 port 40061
Cisco-AVPair += "lcp:interface-config=ip vrf forwarding TOPVAR \nip
unnumbered Loopback1"
Cisco-AVPair += "ip:dns-servers=10.248.136.20 10.18.86.16"
Framed-Protocol = PPP
Service-Type = Framed-User
Framed-IP-Address = 172.30.72.54
Framed-IP-Netmask = 255.255.255.255
Finished request 0.

Thank you very much


More information about the Freeradius-Users mailing list