perl -p -i -e 's/Service-Type(\s+(:=|=|==)\s+)([a-zA-Z])/Service-Type$1::$3/' $(git grep -l 'Service-Type' src/tests raddb/)
except we don't so src/tests/unit, as the printing routines don't
print :: before enum names. and the parsing routines don't set
t_rules->enumv, so parsing the enum doesn't work
# o a max session time set to 28800 seconds (8 hours) or less
#
#fisp
-# Service-Type == Framed-User,
+# Service-Type == ::Framed-User,
# Framed-Protocol == PPP,
# Framed-IP-Address == 255.255.255.254,
# Idle-Timeout <= 600,
# o Login hosts of either 192.0.2.1 or 192.0.2.2
#
#tisp
-# Service-Type == Login-User,
+# Service-Type == ::Login-User,
# Login-Service == Telnet,
# Login-TCP-Port == 23,
# Login-IP-Host == 192.0.2.1,
#
DEFAULT
- Service-Type == Framed-User,
- Service-Type == Login-User,
+ Service-Type == ::Framed-User,
+ Service-Type == ::Login-User,
Login-Service == Telnet,
Login-Service == Rlogin,
Login-Service == TCP-Clear,
# get any attributes in addition to the ones listed here.
#
#steve Password.Cleartext := "testing"
-# Service-Type = Framed-User,
+# Service-Type = ::Framed-User,
# Framed-Protocol = PPP,
# Framed-IP-Address = 172.16.3.33,
# Framed-IP-Netmask = 255.255.255.0,
# Dial user back and telnet to the default host for that port
#
#Deg Password.Cleartext := "ge55ged"
-# Service-Type = Callback-Login-User,
+# Service-Type = ::Callback-Login-User,
# Login-IP-Host = 0.0.0.0,
# Callback-Number = "9,5551212",
# Login-Service = Telnet,
# he will get a connection to the host "timeshare1".
#
#dialbk Password.Cleartext := "callme"
-# Service-Type = Callback-Login-User,
+# Service-Type = ::Callback-Login-User,
# Login-IP-Host = timeshare1,
# Login-Service = PortMaster,
# Callback-Number = "9,1-800-555-1212"
# Note that by setting "Fall-Through", other attributes will be added from
# the following DEFAULT entries
#
-#swilson Service-Type == Framed-User, Huntgroup-Name == "alphen"
+#swilson Service-Type == ::Framed-User, Huntgroup-Name == "alphen"
# Framed-IP-Address = 192.0.2.65,
# Fall-Through = Yes
#
# Sample defaults for all framed connections.
#
-#DEFAULT Service-Type == Framed-User
+#DEFAULT Service-Type == ::Framed-User
# Framed-IP-Address = 255.255.255.254,
# Framed-MTU = 576,
-# Service-Type = Framed-User,
+# Service-Type = ::Framed-User,
# Fall-Through = Yes
#
# Last default: rlogin to our main server.
#
#DEFAULT
-# Service-Type = Login-User,
+# Service-Type = ::Login-User,
# Login-Service = Rlogin,
# Login-IP-Host = shellbox.ispdomain.com
# # Last default: shell on the local terminal server.
# #
# DEFAULT
-# Service-Type = Administrative-User
+# Service-Type = ::Administrative-User
# On no match, the user is denied access.
#
# If you need to have a State attribute, you can add it
# here. e.g. for later CoA-Request with State, and
- # Service-Type = Authorize-Only.
+ # Service-Type = ::Authorize-Only.
#
# if (!&reply.State) {
# &reply.State := "0x%randstr(16h)"
Filter-Id = "f1"
Filter-Id += "f2"
NAS-Port = 999
-Service-Type = Login-User
+Service-Type = ::Login-User
#
# Expected answer
Event-Timestamp = 'Feb 1 2015 08:28:58 WIB'
NAS-Port-Type = Ethernet
NAS-Port-Id = 'port 001'
-Service-Type = Framed-User
+Service-Type = ::Framed-User
Framed-Protocol = PPP
Acct-Link-Count = 0
Idle-Timeout = 0
Event-Timestamp = 'Feb 1 2024 08:28:58 GMT'
NAS-Port-Type = Ethernet
NAS-Port-Id = 'port 001'
-Service-Type = Framed-User
+Service-Type = ::Framed-User
Framed-Protocol = PPP
Idle-Timeout = 0
Session-Timeout = 604800
Event-Timestamp = 'Feb 1 2015 08:28:58 WIB'
NAS-Port-Type = Ethernet
NAS-Port-Id = 'port 001'
-Service-Type = Framed-User
+Service-Type = ::Framed-User
Framed-Protocol = PPP
Acct-Link-Count = 0
Idle-Timeout = 0
Event-Timestamp = 'Feb 1 2015 08:28:28 WIB'
NAS-Port-Type = Ethernet
NAS-Port-Id = 'port 001'
-Service-Type = Framed-User
+Service-Type = ::Framed-User
Framed-Protocol = PPP
Acct-Link-Count = 0
Idle-Timeout = 0
Event-Timestamp = 'Feb 1 2015 08:28:58 WIB'
NAS-Port-Type = Ethernet
NAS-Port-Id = 'port 001'
-Service-Type = Framed-User
+Service-Type = ::Framed-User
Framed-Protocol = PPP
Acct-Link-Count = 0
Idle-Timeout = 0
Event-Timestamp = 'Feb 1 2015 08:28:58 WIB'
NAS-Port-Type = Ethernet
NAS-Port-Id = 'port 001'
-Service-Type = Framed-User
+Service-Type = ::Framed-User
Framed-Protocol = PPP
Acct-Link-Count = 0
Idle-Timeout = 0
Event-Timestamp = 'Feb 1 2015 08:28:28 WIB'
NAS-Port-Type = Ethernet
NAS-Port-Id = 'port 001'
-Service-Type = Framed-User
+Service-Type = ::Framed-User
Framed-Protocol = PPP
Acct-Link-Count = 0
Idle-Timeout = 0
Acct-Status-Type = Start
User-Name = "testuser"
Acct-Session-ID = "0123456789"
-Service-Type = Framed-User
+Service-Type = ::Framed-User
NAS-IP-Address = 127.0.0.1
NAS-Port-ID = 0
Message-Authenticator = 0x
User-Name = "testuser"
User-Password = "supersecret"
-Service-Type = Framed-User
+Service-Type = ::Framed-User
#Tunnel-Password = "supersecret"
Called-Station-Id = "scald_pega_pilha"
Class = 0x69616D616E6F706171756576616C756569616D616E6F706171756576616C7565
User-Name = "testuser"
Acct-Session-ID = "0123456789"
-Service-Type = Framed-User
+Service-Type = ::Framed-User
NAS-IP-Address = 127.0.0.1
NAS-Port-ID = 0
Message-Authenticator = 0x
\ No newline at end of file
Reply-Message = "Hello, bob"
2020-05-21 00:56:58.652076 (2) Access-Accept Id 243 build/tests/radsniff/radius-auth+acct+coa-100pkts.pcap:127.0.0.1:57389 <- 127.0.0.1:1812 +0.001 +0.001
Authenticator-Field = 0xc27d2fc97ff6b40202404fa1eba447fc
- Service-Type = Framed-User
+ Service-Type = ::Framed-User
User-Name = "testuser"
NAS-IP-Address = 127.0.0.1
NAS-Port = 123
Authenticator-Field = 0x4279b1ea045f3ae6da9643ef14656468
2020-05-21 00:56:59.790790 (4) Accounting-Response Id 89 build/tests/radsniff/radius-auth+acct+coa-100pkts.pcap:127.0.0.1:63467 <- 127.0.0.1:1813 +0.428 +0.002
Authenticator-Field = 0x113000da9020f10c71b6c248d4dda6bf
- Service-Type = Framed-User
+ Service-Type = ::Framed-User
User-Name = "scald_left_lemos"
NAS-IP-Address = 127.0.0.1
Acct-Session-Id = "0123456789"
Reply-Message = "Hello, bob"
2020-05-21 00:56:59.930695 (8) Access-Accept Id 96 build/tests/radsniff/radius-auth+acct+coa-100pkts.pcap:127.0.0.1:49655 <- 127.0.0.1:1812 +1.279 +0.001
Authenticator-Field = 0xfb31422fb507b80be6518f14005a86dc
- Service-Type = Framed-User
+ Service-Type = ::Framed-User
User-Name = "testuser"
NAS-IP-Address = 127.0.0.1
NAS-Port = 123