attribute = 'radiusProfileDn'
attribute_suspend = "radiusProfileSuspendedDn"
sort_by = 'radiusProfilePriority'
+ check_attribute = 'radiusProfileCondition'
}
#
reply := {}
+# Re-run the above with a different user name - the profile with "Guten Tag"
+# as the reply message has a condition of User-Name == bob
+&User-Name := 'john'
+if (!%ldap.profile('cn=nested,ou=profiles,dc=example,dc=com')) {
+ test_fail
+}
+
+if (reply.Reply-Message != 'Good Day') {
+ test_fail
+}
+
+reply := {}
+
test_pass
cn: child1
radiusAttribute: reply.Reply-Message := 'Guten Tag'
radiusProfilePriority: 2
+radiusProfileCondition: User-Name == 'bob'
dn: cn=child2,cn=nested,ou=profiles,dc=example,dc=com
objectClass: freeradiusPolicy