<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@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:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","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;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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=ZH-TW link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'>I think you should read documentation about CoA offered by your NAS.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'>Then see what can likely be about *Missing Attribute* at least. You better know about all of Error-Cause it may occur. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'>In my experience, it might be lack of key on identifying unique host.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'>In other words, could it be your Acct-Session-Id or User-Name cannot be primary key to identify one host on the NAS?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'>Okis.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Muhammad Nadeem [mailto:mnadeem8327@gmail.com] <br><b>Sent:</b> Tuesday, July 23, 2013 2:00 PM<br><b>To:</b> okischuang@outlook.com<br><b>Subject:</b> Re: coa<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US>thanks all,,, i am using huawei NAS.<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US>here is the complete log<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><div><p class=MsoNormal><span lang=EN-US>echo "Acct-Session-Id=1B1E97C3,User-Name=<a href="mailto:002682615F4E@test_cpe.com">002682615F4E@test_cpe.com</a>,NAS-IP-Address=2.2.2.2" | radclient -x <a href="http://2.2.2.2:3799">2.2.2.2:3799</a> disconnect huaweiaaa<o:p></o:p></span></p></div></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><div><p class=MsoNormal><span lang=EN-US>Sending Disconnect-Request of id 0 to 2.2.2.2 port 3799<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> Acct-Session-Id = "1B1E97C3"<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> User-Name = "<a href="mailto:002682615F4E@test_cpe.com">002682615F4E@test_cpe.com</a>"<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> NAS-IP-Address = 2.2.2.2<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>rad_recv: Disconnect-NAK packet from host 2.2.2.2 port 3799, id=0, length=26<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> Error-Cause = Missing-Attribute<o:p></o:p></span></p></div></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>whats wrong???<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US>On Tue, Jul 23, 2013 at 10:58 AM, <<a href="mailto:okischuang@outlook.com" target="_blank">okischuang@outlook.com</a>> wrote:<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US><quote author='Nadeem'><br>hi everybody,,<br>I wanna implement COA (Change Of Authorization) in freeradius. I have a<br>live session of a device, I wanna disconnect this device forcefully.<br><br>I isssued following command<br><br>echo<br>"Acct-Session-Id=1B1E97C3,User-Name=<a href="mailto:002682615F4E@test_cpe.com">002682615F4E@test_cpe.com</a>,NAS-IP-Address=2.2.2.2"<br>| radclient -x <a href="http://2.2.2.2:3799" target="_blank">2.2.2.2:3799</a> disconnect 'huaweiaaa'<br><br>but it give the error of "missing attribute".<br>Can anybody tell me what is the issue. Thanks<br><br>--<br>What kind of CoA server you are using? In my experiences, coa highly depends on the type of NAS. In my case that I has a WiFi GW as CoA server, it usually gets "Missing Attributes" if I missed some *keys* of identifying unique user. Such as "NAS-IP-Address + NAS-Port-Id" or "Some-VSA-Can-Be-A-Key" or "Acct-Session-Id" and usually with priority.<br><br>Besides, maybe you can post some more detailed output of your testing so that we can do more help.<br><br>Okis.<br><br><br><br>_____________________________________<br>Sent from <a href="http://freeradius.1045715.n5.nabble.com" target="_blank">http://freeradius.1045715.n5.nabble.com</a><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><br><br clear=all><o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><p class=MsoNormal><span lang=EN-US>-- <br>Best Regards<br>Muhammad Nadeem<br>Muhammad Ali Jinnah University <o:p></o:p></span></p></div></div></div></body></html>