<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.pygments-
{mso-style-name:pygments-;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I just tried using <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>if(%Client-Type == 'cisco'){<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> Service-Type = NAS-Prompt-User<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> cisco-avpair = "shell:priv-lvl=15"<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span style='color:#1F497D'>}<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>In section post-auth or authorize but it doesn’t work. I have the following message :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>"update" sections cannot have subsections<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Is there any way to update the Attribute sent by the radius server when authenticate on a specific NAS / Client ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Regards,<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D'>Fabien VINCENT</span></b><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'>Ingénieur Réseaux & Sécurité / ASSR Produits<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'>Niveau 3 - Infrastructure & Produits<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'><a href="mailto:fabien.vincent@coreye.fr"><span style='color:#404040'>fabien.vincent@coreye.fr</span></a></span><span style='color:#404040'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Vincent, Fabien <br><b>Envoyé :</b> lundi 7 novembre 2011 10:36<br><b>À :</b> Vincent, Fabien; freeradius-users@lists.freeradius.org<br><b>Objet :</b> RE: NAS in sql and returning specific VSAs<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Sorry, CTRL+Enter is not a good keyboard on Monday Morning ;)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>So, I return to the NAS some VSAs depending LDAP Group like this :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span class=pygments-><span lang=EN-US>if (Ldap-Group == "MyGroup") {</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span class=pygments-><span lang=EN-US>update reply {</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US>#<span class=pygments-> Rules for Cisco Routeurs</span> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>Service-Type = NAS-Prompt-User</span></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>cisco-avpair = "shell:priv-lvl=15"</span></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US># Rule for 3Com Access</span></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>Service-Type += Login-User</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>Login-Service += Telnet</span></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>Login-Service += 3com-50</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>H3C-Exec_Privilege = 3</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>3Com-User-Access-Level = 3Com-Manager</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US>#<span class=pygments->AV-Pair for F5 BigIP LTM Access (see /usr/share/freeradius/dictionnary.f5)</span> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>F5-LTM-User-Role = Manager</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>F5-LTM-User-Info-1 = myGroup</span></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>F5-LTM-User-Partition = Common</span></span><span lang=EN-US> <o:p></o:p></span></p><div><p class=MsoNormal style='margin-left:70.8pt'><span class=pygments-><span lang=EN-US>F5-LTM-User-Shell = bpsh</span></span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Etc ….<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Is there any to check a NAS attribute to split replies, with sort of VSAs groups for each NAS type, in post-auth ? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have the following nas table :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>mysql> describe nas;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+-------------+--------------+------+-----+---------------+----------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| Field | Type | Null | Key | Default | Extra |<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+-------------+--------------+------+-----+---------------+----------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| id | int(10) | NO | PRI | NULL | auto_increment | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| nasname | varchar(128) | NO | MUL | NULL | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| shortname | varchar(32) | YES | | NULL | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| type | varchar(30) | YES | | other | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| ports | int(5) | YES | | NULL | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| secret | varchar(60) | NO | | secret | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| server | varchar(64) | YES | | NULL | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| community | varchar(50) | YES | | NULL | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>| description | varchar(200) | YES | | RADIUS Client | | <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+-------------+--------------+------+-----+---------------+----------------+<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks in advance for your help !<o:p></o:p></span></p><p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D'>Fabien VINCENT</span></b><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'>Ingénieur Réseaux & Sécurité / ASSR Produits<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'>Niveau 3 - Infrastructure & Produits<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'><a href="mailto:fabien.vincent@coreye.fr"><span style='color:#404040'>fabien.vincent@coreye.fr</span></a></span><span style='color:#1F497D'> <o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Vincent, Fabien <br><b>Envoyé :</b> lundi 7 novembre 2011 10:31<br><b>À :</b> 'freeradius-users@lists.freeradius.org'<br><b>Objet :</b> NAS in sql and returning specific VSAs<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I have one question about Free Radius and NAS in sql database.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I return to the NAS some VSAs depending LDAP User-Group like this : <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D'>Fabien VINCENT</span></b><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'>Ingénieur Réseaux & Sécurité / ASSR Produits<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'>Niveau 3 - Infrastructure & Produits<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";color:#404040'><a href="mailto:fabien.vincent@coreye.fr"><span style='color:#404040'>fabien.vincent@coreye.fr</span></a></span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>