<?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: tacacs before / after authorization in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/tacacs-before-after-authorization/m-p/508549#M427585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, got it.&lt;/P&gt;&lt;P&gt;Next to the fields that are passed along (like user, name etc) just keep on reading standard input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just in case anyone else is interested:&lt;/P&gt;&lt;P&gt;the sdtacplus.cfg reads:&lt;/P&gt;&lt;P&gt;user = memyself {&lt;/P&gt;&lt;P&gt;    before authorization "myscript $user $name'&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then myscript goes like&lt;/P&gt;&lt;P&gt;$user = $ARGV[0]&lt;/P&gt;&lt;P&gt;$name = $ARGV[1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (&lt;STDIN&gt;) {&lt;/STDIN&gt;&lt;/P&gt;&lt;P&gt;    $input = $_;&lt;/P&gt;&lt;P&gt;    chop ($input);&lt;/P&gt;&lt;P&gt;    print "$input\n";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the above just prints STDIN back to STDOUT so it's not very functional, but it's the thought that counts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2006 12:55:22 GMT</pubDate>
    <dc:creator>pvdvoort</dc:creator>
    <dc:date>2006-03-15T12:55:22Z</dc:date>
    <item>
      <title>tacacs before / after authorization</title>
      <link>https://community.cisco.com/t5/network-access-control/tacacs-before-after-authorization/m-p/508548#M427584</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using tac_plus and want to use my own script for authorizing users, based on the NAS and based on the command a user enters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation mentions fields that can be passed to a script (like user, name, port etc) and that works geat, but is there a way to also pass the command the user entered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation states that it is possible to read all the fields in the authorization packet the NAS sent, but I can't seem to figure out how that should be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thanks.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 21:30:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/tacacs-before-after-authorization/m-p/508548#M427584</guid>
      <dc:creator>pvdvoort</dc:creator>
      <dc:date>2019-03-10T21:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: tacacs before / after authorization</title>
      <link>https://community.cisco.com/t5/network-access-control/tacacs-before-after-authorization/m-p/508549#M427585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, got it.&lt;/P&gt;&lt;P&gt;Next to the fields that are passed along (like user, name etc) just keep on reading standard input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just in case anyone else is interested:&lt;/P&gt;&lt;P&gt;the sdtacplus.cfg reads:&lt;/P&gt;&lt;P&gt;user = memyself {&lt;/P&gt;&lt;P&gt;    before authorization "myscript $user $name'&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then myscript goes like&lt;/P&gt;&lt;P&gt;$user = $ARGV[0]&lt;/P&gt;&lt;P&gt;$name = $ARGV[1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (&lt;STDIN&gt;) {&lt;/STDIN&gt;&lt;/P&gt;&lt;P&gt;    $input = $_;&lt;/P&gt;&lt;P&gt;    chop ($input);&lt;/P&gt;&lt;P&gt;    print "$input\n";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the above just prints STDIN back to STDOUT so it's not very functional, but it's the thought that counts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2006 12:55:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/tacacs-before-after-authorization/m-p/508549#M427585</guid>
      <dc:creator>pvdvoort</dc:creator>
      <dc:date>2006-03-15T12:55:22Z</dc:date>
    </item>
  </channel>
</rss>

