[prev in list] [next in list] [prev in thread] [next in thread]
List: freeswitch-users
Subject: [Freeswitch-users] adding policies
From: Juan Pablo L. <jpablolorenzetti () hotmail ! com>
Date: 2015-04-30 19:14:51
Message-ID: DUB130-W53BF74F5FDFCF2C7658F8CD9D60 () phx ! gbl
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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!!
[Attachment #5 (text/html)]
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi, i m trying to enabled policies in my AAA, \
but i m getting the following error:<br><br>Thu Apr 30 13:02:22 2015 : Error: \
~/etc/raddb/policy.d/filter[66]: Failed to find "reject" as a module or \
policy.<br>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.<br>Thu Apr \
30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[66]: Failed to parse "reject" \
entry.<br>Thu Apr 30 13:02:22 2015 : Error: ~/etc/raddb/policy.d/filter[65]: Failed \
to parse "if" subsection.<br>Thu Apr 30 13:02:22 2015 : Error: \
~/etc/raddb/sites-enabled/default[220]: Errors parsing authorize section.<br><br>i \
have enabled policies in radius.conf:<br>policy \
{<br> $INCLUDE policy.d/<br>}<br><br>i have \
defined the policy in the<br>~/etc/raddb/policy.d/filter<br>filter_username \
{<br> if (User-Name != \
"%{tolower:%{User-Name}}") \
{<br> \
reject<br> }<br>}<br><br>and i configured \
sites-available/default to call the policy in the authorize section by simply \
<br>calling the name of the filter:<br><br>filter_username<br><br><br>but i get the \
above error, i would appreciate where to look for more info about this. \
thanks!!<br><br><br> </div></body> </html>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic