<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RADIUS/DECODE: parse VSA parts error in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/radius-decode-parse-vsa-parts-error/m-p/213795#M434639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have configured the return attributes incorrectly, as IOS should parse these no problem.  I see the following from your debug output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-return-code [103] 3 &lt;B&gt;"0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-currency [110] 3 &lt;B&gt;"1"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-billing-model [109] 3 &lt;B&gt;"0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-preferred-lang[107] 3 &lt;B&gt;"1"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 15&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-credit-amount [101] 9 &lt;B&gt;"20.0000" &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meaning you set the values for these attributes to 0, 1, 0, 1, 20.0000 respectively.  However, for h323 Av pairs specifically, the actual attribute return values should not just be the value, but be the attribute name and the value.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, a working debug on my router here shows the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  26  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-return-code   [103] 20  &lt;B&gt;"h323-return-code=0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  30  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-preferred-lang[107] 24  &lt;B&gt;"h323-preferred-lang=en"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  34  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-credit-amount [101] 28  &lt;B&gt;"h323-credit-amount=-180.26"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  23  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-billing-model [109] 17  &lt;B&gt;"billing-model=0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  25  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-currency      [110] 19  &lt;B&gt;"currency-type=USD"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how the attribute value as defined on my Radius server for h323-return-code is "h323-return-code=0", as opposed to just "0" like you have defined.  Never been sure why you have to do it this way, it's just the way the IOS coders implemented it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation is not overly clear on this, but this is how IOS expects to see the attributes.  See &lt;A class="jive-link-custom" href="http://www.cisco.com/univercd/cc/td/doc/product/access/acs_serv/vapp_dev/vsaig3.htm#146580" target="_blank"&gt;http://www.cisco.com/univercd/cc/td/doc/product/access/acs_serv/vapp_dev/vsaig3.htm#146580&lt;/A&gt; for details, and the debug output near the bottom to see how the attributes are set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Mar 2004 00:25:07 GMT</pubDate>
    <dc:creator>gfullage</dc:creator>
    <dc:date>2004-03-31T00:25:07Z</dc:date>
    <item>
      <title>RADIUS/DECODE: parse VSA parts error</title>
      <link>https://community.cisco.com/t5/network-access-control/radius-decode-parse-vsa-parts-error/m-p/213794#M434638</link>
      <description>&lt;P&gt;I am configuring a 5350 to work with a RADIUS server. The 5350 sends an Access Request and receives the access request, as seen below. But it is not parsing proper values in my TCL script variables. I have configured the NAS using Cisco manuals: aaa authorization, vsa etc are all enabled as shown below. What is it that I am missing or not doing properly.&lt;/P&gt;&lt;P&gt;Any pointers / help will be highly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naveed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All IP and identifiable info sanitized. The sanitized configuration info is attached for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS(00000048): Storing nasport 0 in rad_db&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS(00000048): Config NAS IP: 0.0.0.0&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/ENCODE(00000048): acct_session_id: 98&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS(00000048): sending&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/ENCODE: Best Local IP-Address 222.222.222.22 for Radius-Server 222.x.x.x&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS(00000048): Send Access-Request to 222.222.222.222:1812 id 21645/7&lt;/P&gt;&lt;P&gt;4, len 211&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  authenticator C7 AE ED E4 B2 BB AF FC - 62 CD 39 78 FB 6A 45&lt;/P&gt;&lt;P&gt;6E&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  User-Name           [1]   12  "1234567890"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  User-Password       [2]   18  *&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  56&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   Conf-Id            [24]  50  "h323-conf-id=AD47C155 BFC611D3&lt;/P&gt;&lt;P&gt; 8050E329 E47CB85B"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  37&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   Cisco AVpair       [1]   31  "h323-ivr-out=transactionID:26"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Calling-Station-Id  [31]  12  "1234567890"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  NAS-Port-Type       [61]  6   Async                     [0]&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  20&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   cisco-nas-port     [2]   14  "ISDN 3/0:D:1"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  NAS-Port            [5]   6   0&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Calling-Station-Id  [31]  12  "1234567890"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Service-Type        [6]   6   Login                     [1]&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  NAS-IP-Address      [4]   6   222.x.x.22&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Received from id 21645/74 222.222.222.222:1812, Access-Accept, l&lt;/P&gt;&lt;P&gt;en 71&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  authenticator E1 B0 04 C6 5D 73 96 D5 - 72 03 81 65 A2 54 16&lt;/P&gt;&lt;P&gt;42&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   h323-return-code   [103] 3   "0"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   h323-currency      [110] 3   "1"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   h323-billing-model [109] 3   "0"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   h323-preferred-lang[107] 3   "1"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:  Vendor, Cisco       [26]  15&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS:   h323-credit-amount [101] 9   "20.0000"&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS(00000048): Received from id 21645/74&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: parse VSA parts error&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: convert VSA string; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: decoder; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: attribute h323-return-code; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: cisco VSA type 103; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: VSA; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: decoder; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: attribute Vendor-Specific; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: parse response op decode; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS/DECODE: parse response; FAIL&lt;/P&gt;&lt;P&gt;21:10:18: //-1//TCL2:HN048B0090:/tcl_PutsObjCmd:&lt;/P&gt;&lt;P&gt;h323-return-code = 0&lt;/P&gt;&lt;P&gt;21:10:18:&lt;/P&gt;&lt;P&gt;21:10:18: //-1//TCL2:HN048B0090:/tcl_PutsObjCmd:&lt;/P&gt;&lt;P&gt;h323-currency =&lt;/P&gt;&lt;P&gt;21:10:18:&lt;/P&gt;&lt;P&gt;21:10:18: //-1//TCL2:HN048B0090:/tcl_PutsObjCmd:&lt;/P&gt;&lt;P&gt;h323-billing-model =&lt;/P&gt;&lt;P&gt;21:10:18:&lt;/P&gt;&lt;P&gt;21:10:18: //-1//TCL2:HN048B0090:/tcl_PutsObjCmd:&lt;/P&gt;&lt;P&gt;h323-preferred-lang =&lt;/P&gt;&lt;P&gt;21:10:18:&lt;/P&gt;&lt;P&gt;21:10:18: //-1//TCL2:HN048B0090:/tcl_PutsObjCmd:&lt;/P&gt;&lt;P&gt;h323-credit-amount =&lt;/P&gt;&lt;P&gt;21:10:18:&lt;/P&gt;&lt;P&gt;21:10:18: //-1//TCL2:HN048B0090:/tcl_PutsObjCmd:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 14:43:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/radius-decode-parse-vsa-parts-error/m-p/213794#M434638</guid>
      <dc:creator>naveed.nazir</dc:creator>
      <dc:date>2019-03-10T14:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: RADIUS/DECODE: parse VSA parts error</title>
      <link>https://community.cisco.com/t5/network-access-control/radius-decode-parse-vsa-parts-error/m-p/213795#M434639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have configured the return attributes incorrectly, as IOS should parse these no problem.  I see the following from your debug output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-return-code [103] 3 &lt;B&gt;"0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-currency [110] 3 &lt;B&gt;"1"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-billing-model [109] 3 &lt;B&gt;"0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 9&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-preferred-lang[107] 3 &lt;B&gt;"1"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: Vendor, Cisco [26] 15&lt;/P&gt;&lt;P&gt;21:10:18: RADIUS: h323-credit-amount [101] 9 &lt;B&gt;"20.0000" &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meaning you set the values for these attributes to 0, 1, 0, 1, 20.0000 respectively.  However, for h323 Av pairs specifically, the actual attribute return values should not just be the value, but be the attribute name and the value.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, a working debug on my router here shows the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  26  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-return-code   [103] 20  &lt;B&gt;"h323-return-code=0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  30  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-preferred-lang[107] 24  &lt;B&gt;"h323-preferred-lang=en"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  34  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-credit-amount [101] 28  &lt;B&gt;"h323-credit-amount=-180.26"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  23  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-billing-model [109] 17  &lt;B&gt;"billing-model=0"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS  Vendor, Cisco       [26]  25  &lt;/P&gt;&lt;P&gt;Nov 29 101409 RADIUS   h323-currency      [110] 19  &lt;B&gt;"currency-type=USD"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how the attribute value as defined on my Radius server for h323-return-code is "h323-return-code=0", as opposed to just "0" like you have defined.  Never been sure why you have to do it this way, it's just the way the IOS coders implemented it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation is not overly clear on this, but this is how IOS expects to see the attributes.  See &lt;A class="jive-link-custom" href="http://www.cisco.com/univercd/cc/td/doc/product/access/acs_serv/vapp_dev/vsaig3.htm#146580" target="_blank"&gt;http://www.cisco.com/univercd/cc/td/doc/product/access/acs_serv/vapp_dev/vsaig3.htm#146580&lt;/A&gt; for details, and the debug output near the bottom to see how the attributes are set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2004 00:25:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/radius-decode-parse-vsa-parts-error/m-p/213795#M434639</guid>
      <dc:creator>gfullage</dc:creator>
      <dc:date>2004-03-31T00:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: RADIUS/DECODE: parse VSA parts error</title>
      <link>https://community.cisco.com/t5/network-access-control/radius-decode-parse-vsa-parts-error/m-p/213796#M434640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. It did fix my problem.&lt;/P&gt;&lt;P&gt;Naveed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2004 04:35:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/radius-decode-parse-vsa-parts-error/m-p/213796#M434640</guid>
      <dc:creator>naveed.nazir</dc:creator>
      <dc:date>2004-04-06T04:35:14Z</dc:date>
    </item>
  </channel>
</rss>

