Filter-Id += NAS-Port[*]
# Cache the result of an exec
- Callback-Id := `/bin/echo 'echo test'`
+ Callback-Id := %exec('/bin/echo', 'echo test')
# Create three string values and overwrite the middle one
Login-LAT-Service += 'foo'
Filter-Id += NAS-Port[*]
# Cache the result of an exec
- Callback-Id := `/bin/echo 'echo test'`
+ Callback-Id := %exec('/bin/echo', 'echo test')
# Create three string values and overwrite the middle one
Login-LAT-Service += 'foo'
Filter-Id += NAS-Port[*]
# Cache the result of an exec
- Callback-Id := `/bin/echo 'echo test'`
+ Callback-Id := %exec('/bin/echo', 'echo test')
# Create three string values and overwrite the middle one
Login-LAT-Service += 'foo'
Filter-Id += NAS-Port[*]
# Cache the result of an exec
- Callback-Id := `/bin/echo 'echo test'`
+ Callback-Id := %exec('/bin/echo', 'echo test')
# Create three string values and overwrite the middle one
Login-LAT-Service += 'foo'
filename = "$ENV{MODULE_TEST_DIR}/%{Net.Src.IP}-%{Calling-Station-Id}"
escape_filenames = yes
}
-
-exec {
-}
# Sync calls should always return a zero length string
# because we don't wait for the response.
#
-test_string := %exec('/bin/sh', '-c', 'echo hello')
+test_string := %exec_wait('/bin/sh', '-c', 'echo hello')
if (test_string != 'hello') {
test_fail
}
#
# @todo - list over-rides are not allowed!
#
-control += %exec('/bin/sh', '-c', "echo Reply-Message := \'hello\'")
+control += %exec_wait('/bin/sh', '-c', "echo Reply-Message := \'hello\'")
if (control.Reply-Message != 'hello') {
test_fail
-exec {
+exec exec_wait {
wait = yes
input_pairs = request
shell_escape = yes
test_fail
}
-test_integer := %exec('/bin/sh', '-c', "wc -l < $ENV{MODULE_TEST_DIR}/test_e.log")
+test_integer := %exec_wait('/bin/sh', '-c', "wc -l < $ENV{MODULE_TEST_DIR}/test_e.log")
if !(test_integer == 3) {
test_fail
}
}
-exec {
+exec exec_wait {
wait = yes
input_pairs = request
shell_escape = yes
chap_nt_enc_pw = Vendor-Specific.Microsoft.CHAP-NT-Enc-PW
}
}
-
-exec {
-}
delay {
}
-exec {
- # Pass through path
- env_inherit = yes
-}
delay {
}
-
-exec {
- # Pass through path
- env_inherit = yes
-}
map sql 'SELECT * FROM radusergroup WHERE priority = 0' {
control.User-Name = userfield
control.Filter-Id = "group%{groupfield}"
- control.NAS-Port = `/bin/echo priority`
+ control.NAS-Port = %exec('/bin/echo', 'priority')
}
if (!updated) {
time_offset = time_offset
}
-exec {
-}
-
date {
utc = yes
}
modules {
$INCLUDE ${raddb}/mods-enabled/always
+ exec {
+ env_inherit = yes # needed by redis_ippool
+ }
+
$INCLUDE ${raddb}/mods-enabled/pap
$INCLUDE $ENV{MODULE_TEST_DIR}/module.conf