# Expected answer
#
Packet-Type == Access-Accept
-Framed-IP-Netmask == 255.255.0.0
-Acct-Interim-Interval == 1800
+Framed-IP-Netmask == 255.255.128.0
+Acct-Interim-Interval == 3600
Reply-Message == "User-Suspended"
test_fail
}
-if (!((&reply.Framed-IP-Netmask == 255.255.0.0) && \
- (&reply.Acct-Interim-Interval == 1800) && \
+if (!((&reply.Framed-IP-Netmask == 255.255.128.0) && \
+ (&reply.Acct-Interim-Interval == 3600) && \
(&request.Service-Type == ::Framed-User) && \
- (&control.Framed-IP-Address == 1.2.3.4) && \
- (&control.Reply-Message == 'Hello world'))) {
+ (&control.Framed-IP-Address == 1.2.3.5) && \
+ (&control.Reply-Message == 'Bonjour'))) {
test_fail
}
dn: cn=profile2,ou=profiles,dc=example,dc=com
objectClass: freeradiusPolicy
objectClass: radiusprofile
-cn: profile1
-radiusReplyAttribute: Framed-IP-Netmask := 255.255.0.0
-radiusReplyAttribute: Acct-Interim-Interval := 1800
+cn: profile2
+radiusReplyAttribute: Framed-IP-Netmask := 255.255.128.0
+radiusReplyAttribute: Acct-Interim-Interval := 3600
radiusRequestAttribute: Service-Type := 'Framed-User'
-radiusControlAttribute: Framed-IP-Address := 1.2.3.4
-radiusControlAttribute: Reply-Message := "Hello world"
+radiusControlAttribute: Framed-IP-Address := 1.2.3.5
+radiusControlAttribute: Reply-Message := "Bonjour"
dn: cn=suspended,ou=profiles,dc=example,dc=com
objectClass: freeradiusPolicy