<?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 Radius and UserGroups Authorization Script in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/radius-and-usergroups-authorization-script/m-p/396903#M432530</link>
    <description>&lt;P&gt;I am running Cisco Access Registrar and I need to run a tcl script as a UserGroups' AuthorizationScript, but it never seems to be triggered. The idea is to have a script which will check a user's group against the number that they dialled and accept or reject them if they match.&lt;/P&gt;&lt;P&gt;To test this, I set up a 'testing' group as follows:&lt;/P&gt;&lt;P&gt;//localhost/Radius/UserGroups/testing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these settings:&lt;/P&gt;&lt;P&gt;    Name = testing&lt;/P&gt;&lt;P&gt;    Description = "Testing group profile"&lt;/P&gt;&lt;P&gt;    BaseProfile~ = testing&lt;/P&gt;&lt;P&gt;    AuthenticationScript~ = &lt;/P&gt;&lt;P&gt;    AuthorizationScript~ = testing&lt;/P&gt;&lt;P&gt;    Attributes/&lt;/P&gt;&lt;P&gt;    CheckItems/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The testing script itself is set up as follows:&lt;/P&gt;&lt;P&gt;[ //localhost/Radius/Scripts/testing ]&lt;/P&gt;&lt;P&gt;    Name = testing&lt;/P&gt;&lt;P&gt;    Description = "The testing script"&lt;/P&gt;&lt;P&gt;    Language = tcl&lt;/P&gt;&lt;P&gt;    Filename = testing.tcl&lt;/P&gt;&lt;P&gt;    EntryPoint = testing&lt;/P&gt;&lt;P&gt;    InitEntryPoint = &lt;/P&gt;&lt;P&gt;    InitEntryPointArgs = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script itself I've kept really simple just to see if it will work:&lt;/P&gt;&lt;P&gt;proc testing {request response environ} {&lt;/P&gt;&lt;P&gt;    $environ put Response-Type "Access-Reject"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is that the dialup process never hits that script. The user gets an Access-Accept without ever the script having run. It never shows up in the Radius trace logs. The user that dials in gets correctly identified as part of the UserGroup "testing" and is immediately set up with a session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything that could be overriding the AuthorizationScript step? What else do I need to get Radius to trigger the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2019 21:02:49 GMT</pubDate>
    <dc:creator>marko.djukic</dc:creator>
    <dc:date>2019-03-10T21:02:49Z</dc:date>
    <item>
      <title>Radius and UserGroups Authorization Script</title>
      <link>https://community.cisco.com/t5/network-access-control/radius-and-usergroups-authorization-script/m-p/396903#M432530</link>
      <description>&lt;P&gt;I am running Cisco Access Registrar and I need to run a tcl script as a UserGroups' AuthorizationScript, but it never seems to be triggered. The idea is to have a script which will check a user's group against the number that they dialled and accept or reject them if they match.&lt;/P&gt;&lt;P&gt;To test this, I set up a 'testing' group as follows:&lt;/P&gt;&lt;P&gt;//localhost/Radius/UserGroups/testing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these settings:&lt;/P&gt;&lt;P&gt;    Name = testing&lt;/P&gt;&lt;P&gt;    Description = "Testing group profile"&lt;/P&gt;&lt;P&gt;    BaseProfile~ = testing&lt;/P&gt;&lt;P&gt;    AuthenticationScript~ = &lt;/P&gt;&lt;P&gt;    AuthorizationScript~ = testing&lt;/P&gt;&lt;P&gt;    Attributes/&lt;/P&gt;&lt;P&gt;    CheckItems/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The testing script itself is set up as follows:&lt;/P&gt;&lt;P&gt;[ //localhost/Radius/Scripts/testing ]&lt;/P&gt;&lt;P&gt;    Name = testing&lt;/P&gt;&lt;P&gt;    Description = "The testing script"&lt;/P&gt;&lt;P&gt;    Language = tcl&lt;/P&gt;&lt;P&gt;    Filename = testing.tcl&lt;/P&gt;&lt;P&gt;    EntryPoint = testing&lt;/P&gt;&lt;P&gt;    InitEntryPoint = &lt;/P&gt;&lt;P&gt;    InitEntryPointArgs = &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script itself I've kept really simple just to see if it will work:&lt;/P&gt;&lt;P&gt;proc testing {request response environ} {&lt;/P&gt;&lt;P&gt;    $environ put Response-Type "Access-Reject"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is that the dialup process never hits that script. The user gets an Access-Accept without ever the script having run. It never shows up in the Radius trace logs. The user that dials in gets correctly identified as part of the UserGroup "testing" and is immediately set up with a session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything that could be overriding the AuthorizationScript step? What else do I need to get Radius to trigger the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 21:02:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/radius-and-usergroups-authorization-script/m-p/396903#M432530</guid>
      <dc:creator>marko.djukic</dc:creator>
      <dc:date>2019-03-10T21:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Radius and UserGroups Authorization Script</title>
      <link>https://community.cisco.com/t5/network-access-control/radius-and-usergroups-authorization-script/m-p/396904#M432532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More information on the Cisco Access Registrar scripts is given in the document.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-custom" href="http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/cnsar/3_5/concepts/scripts.htm" target="_blank"&gt;http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/cnsar/3_5/concepts/scripts.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2005 17:12:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/radius-and-usergroups-authorization-script/m-p/396904#M432532</guid>
      <dc:creator>owillins</dc:creator>
      <dc:date>2005-03-15T17:12:20Z</dc:date>
    </item>
  </channel>
</rss>

