Sample Header Ad - 728x90

freeradius test user fails Parse error (reply) for entry test: Expected end of line or comma

1 vote
2 answers
7291 views
I am trying to use the following at the top of my files authorize to test a new radius installation on default configs. head /etc/raddb/mods-config/files/authorize bob Cleartext-Password := "hello" Reply-Message := "Hello, %{User-Name}" test Cleartext-Password := "test" Reply-Message := "Hello, %{User-Name} # # Configuration file for the rlm_files module. # Please see rlm_files(5) manpage for more information. This fails to load at start up. With the last few lines of the logs looking like this. /sbin/radiusd -f -X -x ..... Wed Aug 16 16:37:38 2017 : Debug: reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" Wed Aug 16 16:37:38 2017 : Debug: } Wed Aug 16 16:37:38 2017 : Debug: (Loaded rlm_files, checking if it's valid) Wed Aug 16 16:37:38 2017 : Debug: # Loaded module rlm_files Wed Aug 16 16:37:38 2017 : Debug: # Instantiating module "files" from file /etc/raddb/mods-enabled/files Wed Aug 16 16:37:38 2017 : Debug: files { Wed Aug 16 16:37:38 2017 : Debug: filename = "/etc/raddb/mods-config/files/authorize" Wed Aug 16 16:37:38 2017 : Debug: usersfile = "/etc/raddb/mods-config/files/authorize" Wed Aug 16 16:37:38 2017 : Debug: acctusersfile = "/etc/raddb/mods-config/files/accounting" Wed Aug 16 16:37:38 2017 : Debug: preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy" Wed Aug 16 16:37:38 2017 : Debug: compat = "cistron" Wed Aug 16 16:37:38 2017 : Debug: } Wed Aug 16 16:37:38 2017 : Debug: reading pairlist file /etc/raddb/mods-config/files/authorize Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-config/files/authorize: Parse error (reply) for entry test: Expected end of line or comma Wed Aug 16 16:37:38 2017 : Error: Failed reading /etc/raddb/mods-config/files/authorize Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-enabled/files: Instantiation failed for module "files"
Asked by nelaaro (1363 rep)
Aug 16, 2017, 04:52 PM
Last activity: May 31, 2024, 05:00 AM