blob: ea9543c059431d494beec0e4b53eb22373cc4acd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#
# PRE: update if
#
# Remove all attributes in a list
#
update {
control:Cleartext-Password := 'hello'
reply:Filter-Id := 'filter'
}
#
# Regression test for 0x prefix. xlat expanded
# octet strings must NOT have a 0x prefix added
#
update request {
Tmp-Octets-0 := 0x0001020304050607
Tmp-Octets-0 += 0x0706050403020100
}
if ("%{Tmp-Octets-0}" != '0x0001020304050607') {
update {
reply:Filter-Id := 'fail 1'
}
}
if ("%{Tmp-Octets-0[0]}" != '0x0001020304050607') {
update {
reply:Filter-Id += 'fail 2'
}
}
if ("%{Tmp-Octets-0[*]}" != '0x0001020304050607,0x0706050403020100') {
update {
reply:Filter-Id += 'fail 3'
}
}
|