<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
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:"Текст выноски Знак";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.a
{mso-style-name:"Текст выноски Знак";
mso-style-priority:99;
mso-style-link:"Текст выноски";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></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="RU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="ET">Hello everybody!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ET">I use unlang incut in „default“ configfile in „post-auth“ subsection and it works fine on 2.1.12 version (FreeBSD 8.3-RELEASE):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ET">-------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET">if ("%{sql: SELECT vlan FROM radcheck WHERE username = '%{User-Name}'}" == "voice") {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> update reply {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> Cisco-AVPair = "device-traffic-class=voice"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> else {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> update reply {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> Tunnel-Type = "VLAN",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> Tunnel-Medium-Type = "IEEE-802",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> Tunnel-Private-Group-ID = "%{sql: SELECT vlan FROM radcheck WHERE username = '%{User-Name}'}"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET">-------------------------------------------------------------------------------------------------------------</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ET">But on 3.0.4 version (FreeBSD 8.4-RELEASE) in doesn’t work. When I execute „radiusd -X“ such lines appear in debug output:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ET">/usr/local/etc/raddb/sites-enabled/default[665]: Failed parsing expanded string:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET">/usr/local/etc/raddb/sites-enabled/default[665]: %{sql: SELECT vlan FROM radcheck WHERE username = '%{User-Name}'}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET">/usr/local/etc/raddb/sites-enabled/default[665]: ^ Unknown module<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ET">How could I manage this issue?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ET">Thank you.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ET"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;mso-fareast-language:RU">С уважением,
<br>
<br>
<b>Александр Билик<br>
</b>Инженер по информационной безопасности<br>
Группа управления коммуникациями<br>
Группа ЛСР<br>
<br>
E-mail: <a href="mailto:Bilik.AA@lsrgroup.ru"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Bilik.AA@lsrgroup.ru</span></a><br>
<a href="www.lsrgroup.ru"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">www.lsrgroup.ru</span></a><br>
<br>
<img border="0" width="85" height="28" id="Рисунок_x0020_1" src="cid:image002.png@01CFFD98.D0D378D0"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>