attr rewrite issue

Keith Dovale - HostworX.co.za keith at hostworx.co.za
Thu Feb 7 20:08:04 CET 2008


Hi Guys, some help please .

 

I am trying to do a attr rewrite to change an Attribute value then do a
check based on the attribute that is changed, if the check fails do another
attrib rewrite to the next value and do another check, until either the
check fails or passes. There is basically only 4 checks in the group
statement in the authorise section which do

 

Attrib rewrite

Do check

(If it fails do)

 

Attrib rewrite

Do check

(If it fails do)

 

Attrib check

Do rewrite

(If it fails do)

 

Attrib check

Do rewrite

Reject

                Pass

 

When it runs it checks the reply packet for an attribute Configuration-Token
which is defined in the radgroupreply for the users but it seems it cannot
find it and gives an error. As below

                

rlm_sqlcounter: (Check item - counter) is less than zero

rlm_sqlcounter: Rejected user keith, check_item=0, counter=0

  modcall[authorize]: module "MonthlyUnShaped" returns reject for request 2

radius_xlat:  'UNSHAPED_NORMAL'

rlm_attr_rewrite: No match found for attribute Configuration-Token with
value 'SHAPED_NORMAL'

radius_xlat:  'UNSHAPED_NORMAL'

radius_xlat:  'SHAPED_NORMAL'

rlm_attr_rewrite: Changed value for attribute Configuration-Token from
'UNSHAPED_NORMAL' to 'SHAPED_NORMAL'

rlm_attr_rewrite: Could not find value pair for attribute
Configuration-Token

  modcall[authorize]: module "AttrRewrite_MonthlyBlendedShaped" returns ok
for request 2

 

can anyone help

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20080207/4c5b0136/attachment.html>


More information about the Freeradius-Users mailing list