adding policies
Juan Pablo L.
jpablolorenzetti at hotmail.com
Fri May 1 16:06:06 CEST 2015
Hi, i m trying to enabled policies in my AAA, but i m getting the following error:
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[66]: Failed to find "reject" as a module or policy.
Thu
Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[66]: Please
verify that the configuration exists in ~/etc/raddb/mods-enabled/reject.
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[66]: Failed to parse "reject" entry.
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[65]: Failed to parse "if" subsection.
Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/sites-enabled/default[220]: Errors parsing authorize section.
i have enabled policies in radius.conf:
policy {
$INCLUDE policy.d/
}
i have defined the policy in the
~/etc/raddb/policy.d/filter
filter_username {
if (User-Name != "%{tolower:%{User-Name}}") {
reject
}
}
and i configured sites-available/default to call the policy in the authorize section by simply
calling the name of the filter:
filter_username
but i get the above error, i would appreciate where to look for more info about this. thanks!!
More information about the Freeradius-Users
mailing list