<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-ZA>Hi Guys, some help please .<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA>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<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA><o:p> </o:p></span></p>
<p class=MsoNormal style='text-indent:.5in'><span lang=EN-ZA>Attrib rewrite<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:.5in'><span lang=EN-ZA>Do check<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:.5in'><span lang=EN-ZA>(If it fails do)<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><span lang=EN-ZA><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><span lang=EN-ZA>Attrib
rewrite<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><span lang=EN-ZA>Do
check<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><span lang=EN-ZA>(If
it fails do)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:.5in'><span lang=EN-ZA>Attrib
check<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:.5in'><span lang=EN-ZA>Do
rewrite<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:.5in'><span lang=EN-ZA>(If
it fails do)<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:1.5in;text-indent:.5in'><span lang=EN-ZA><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:1.5in;text-indent:.5in'><span lang=EN-ZA>Attrib
check<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:1.5in;text-indent:.5in'><span lang=EN-ZA>Do
rewrite<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:1.5in;text-indent:.5in'><span lang=EN-ZA>Reject<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA> Pass<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA>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<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA> <o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>rlm_sqlcounter: (Check item - counter) is less than
zero<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>rlm_sqlcounter: Rejected user keith, check_item=0,
counter=0<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'> modcall[authorize]: module
"MonthlyUnShaped" returns reject for request 2<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>radius_xlat: 'UNSHAPED_NORMAL'<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>rlm_attr_rewrite: No match found for attribute Configuration-Token
with value 'SHAPED_NORMAL'<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>radius_xlat: 'UNSHAPED_NORMAL'<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>radius_xlat: 'SHAPED_NORMAL'<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>rlm_attr_rewrite: Changed value for attribute
Configuration-Token from 'UNSHAPED_NORMAL' to 'SHAPED_NORMAL'<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>rlm_attr_rewrite: Could not find value pair for
attribute Configuration-Token<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'> modcall[authorize]: module
"AttrRewrite_MonthlyBlendedShaped" returns ok for request 2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA>can anyone help<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-ZA><o:p> </o:p></span></p>
</div>
</body>
</html>