}
update {
- Tmp-String-0 := "%{ldap:ldap://$ENV{TEST_SERVER}/uid=john,ou=people,dc=example,dc=com?description}"
+ &Tmp-String-0 := "%{ldap:ldap://$ENV{TEST_SERVER}/uid=john,ou=people,dc=example,dc=com?description}"
}
if (&Tmp-String-0 != "User john is online") {
ldap.post-auth
update {
- Tmp-String-0 := "%{ldap:ldap://$ENV{TEST_SERVER}/uid=john,ou=people,dc=example,dc=com?description}"
+ &Tmp-String-0 := "%{ldap:ldap://$ENV{TEST_SERVER}/uid=john,ou=people,dc=example,dc=com?description}"
}
if (&Tmp-String-0 != "User %{User-Name} authenticated") {
#
# Resolve using group name attribute
#
-if (LDAP-Group == 'foo') {
+if (&LDAP-Group == 'foo') {
test_pass
}
else {
#
# Resolve using group DN
#
-if (LDAP-Group == 'cn=foo,ou=groups,dc=example,dc=com') {
+if (&LDAP-Group == 'cn=foo,ou=groups,dc=example,dc=com') {
test_pass
}
else {
# test_pass
#} else {
# test_fail
-#}
\ No newline at end of file
+#}