#
# Resolve using group name attribute
#
-if !(%(ldap.memberof:foo) == true) {
+if !(%ldap.memberof("foo") == true) {
test_fail
}
-if !(%(ldap.memberof:baz) == false) {
+if !(%ldap.memberof("baz") == false) {
test_fail
}
#
# Resolve using group DN
#
-if !(%(ldap.memberof:cn=foo,ou=groups,dc=example,dc=com) == true) {
+if !(%ldap.memberof("cn=foo,ou=groups,dc=example,dc=com") == true) {
test_fail
}
-if !(%(ldap.memberof:cn=baz,ou=groups,dc=example,dc=com) == false) {
+if !(%ldap.memberof("cn=baz,ou=groups,dc=example,dc=com") == false) {
test_fail
}
#
# Check the ZSCORE hasn't changed
#
-if !(%(redis:ZSCORE {%{control.IP-Pool.Name}}:pool %{reply.Framed-IP-Address}) == %{zscore}) {
+if !(%redis(ZSCORE, {%{control.IP-Pool.Name}}:pool, %{reply.Framed-IP-Address}) == %{zscore}) {
test_fail
}
test_fail
}
-&zscore := %(redis:ZSCORE {%{control.IP-Pool.Name}}:pool 192.168.0.1)
+&zscore := %redis(ZSCORE, {%{control.IP-Pool.Name}}:pool, 192.168.0.1)
if !(&zscore < (uint64)0x10000000000000) {
test_fail
}
test_fail
}
-&result_string := %dns('1.1.168.192.in-addr.arpa',PTR)
+&result_string := %dns('1.1.168.192.in-addr.arpa', 'PTR')
if (&result_string != 'www.example.com') {
test_fail
# Will return multiple records, though not in a defined sequence.
# Each returned record is a pair of priority and host values.
-&Filter-Id := %dns(example.com,MX)
+&Filter-Id := %dns(example.com, 'MX')
if !(((&Filter-Id[0] == '10') && (&Filter-Id[1] == 'mail.example.com') && (&Filter-Id[2] == '20') && (&Filter-Id[3] == 'mail2.example.com')) || ((&Filter-Id[2] == '10') && (&Filter-Id[3] == 'mail.example.com') && (&Filter-Id[0] == '20') && (&Filter-Id[1] == 'mail2.example.com'))) {
test_fail