<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for TACACS+ stuff</title>
	<atom:link href="http://tacacs.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://tacacs.org</link>
	<description>Casting Light on the Dark Art of TACACS+</description>
	<lastBuildDate>Sat, 28 Aug 2010 14:43:41 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by Rogerio</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-701</link>
		<dc:creator>Rogerio</dc:creator>
		<pubDate>Sat, 28 Aug 2010 14:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-701</guid>
		<description>Excellent guide, Dan! Does exist any bug about limiting configuration commands? In my do_auth.ini I&#039;d restricted the following comands to the specified user:
&lt;strong&gt;
[users]
integra =
	restrito
rogerios =
	admin
[restrito]
host_allow = 
	.*
device_permit = 
	192.168.0.2402
command_permit =
	show .*
       quit
command_deny = 
       show ver.*
       conf.*
       int.*
       shutdown
&lt;/strong&gt;
But it didn&#039;t work!
All other features are working (including deny &quot;show version&quot;), but &quot;config ter&quot;, &quot;interface gi 0/1&quot; and &quot;shutdown&quot; were permited.

Can you help me?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Excellent guide, Dan! Does exist any bug about limiting configuration commands? In my do_auth.ini I&#8217;d restricted the following comands to the specified user:<br />
<strong><br />
[users]<br />
integra =<br />
	restrito<br />
rogerios =<br />
	admin<br />
[restrito]<br />
host_allow =<br />
	.*<br />
device_permit =<br />
	192.168.0.2402<br />
command_permit =<br />
	show .*<br />
       quit<br />
command_deny =<br />
       show ver.*<br />
       conf.*<br />
       int.*<br />
       shutdown<br />
</strong><br />
But it didn&#8217;t work!<br />
All other features are working (including deny &#8220;show version&#8221;), but &#8220;config ter&#8221;, &#8220;interface gi 0/1&#8243; and &#8220;shutdown&#8221; were permited.</p>
<p>Can you help me?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by Alex</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-578</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 26 Mar 2010 05:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-578</guid>
		<description>Thanks  helpdeskdan, it works fine now. I do appreciate the effort toward helping me resolve this.</description>
		<content:encoded><![CDATA[<p>Thanks  helpdeskdan, it works fine now. I do appreciate the effort toward helping me resolve this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by helpdeskdan</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-577</link>
		<dc:creator>helpdeskdan</dc:creator>
		<pubDate>Fri, 26 Mar 2010 00:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-577</guid>
		<description>Not exactly what cat would do - it only prints the help.  

So, let&#039;s debug with -D.  (don&#039;t run from command line without -D)

python do_auth.py -i 10.1.1.1 -u alex -d 192.168.1.1 -l log.txt -f do_auth.ini -D

We get errors:
  
Traceback (most recent call last):
  File &quot;do_auth.py&quot;, line 375, in 
    main()
  File &quot;do_auth.py&quot;, line 281, in main
    if not (filename in config.read(filename)):
  File &quot;/usr/lib/python2.6/ConfigParser.py&quot;, line 286, in read
    self._read(fp, filename)
  File &quot;/usr/lib/python2.6/ConfigParser.py&quot;, line 510, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: do_auth.ini
	[line  3]: &#039;admin\n&#039;
....

I see the problem.  No tabs!  I can&#039;t seem to print tabs on the wiki, but you need tabs everywhere I have a \t

[users]
alex =
\tadmin

[admin]
host_allow =
\t.*
device_permit =
\t.*
command_permit =
\t.*

After than, it&#039;s a lot happier:
dan@dan-desktop:~$ python do_auth.py -i 10.1.1.1 -u alex -d 192.168.1.1 -l log.txt -f do_auth.ini -D
dan@dan-desktop:~$ cat log.txt 
2010-03-25 18:16:06: User &#039;alex&#039; allowed command &#039;show users wide&#039; to device &#039;192.168.1.1&#039; in &#039;admin&#039;-&gt;&#039;command_permit&#039;

The debug command is hard coded to &quot;show users wide.&quot;  I was going to change that to allow a variable, but I was finished with the program and nobody else had any interest in it.</description>
		<content:encoded><![CDATA[<p>Not exactly what cat would do &#8211; it only prints the help.  </p>
<p>So, let&#8217;s debug with -D.  (don&#8217;t run from command line without -D)</p>
<p>python do_auth.py -i 10.1.1.1 -u alex -d 192.168.1.1 -l log.txt -f do_auth.ini -D</p>
<p>We get errors:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;do_auth.py&#8221;, line 375, in<br />
    main()<br />
  File &#8220;do_auth.py&#8221;, line 281, in main<br />
    if not (filename in config.read(filename)):<br />
  File &#8220;/usr/lib/python2.6/ConfigParser.py&#8221;, line 286, in read<br />
    self._read(fp, filename)<br />
  File &#8220;/usr/lib/python2.6/ConfigParser.py&#8221;, line 510, in _read<br />
    raise e<br />
ConfigParser.ParsingError: File contains parsing errors: do_auth.ini<br />
	[line  3]: &#8216;admin\n&#8217;<br />
&#8230;.</p>
<p>I see the problem.  No tabs!  I can&#8217;t seem to print tabs on the wiki, but you need tabs everywhere I have a \t</p>
<p>[users]<br />
alex =<br />
\tadmin</p>
<p>[admin]<br />
host_allow =<br />
\t.*<br />
device_permit =<br />
\t.*<br />
command_permit =<br />
\t.*</p>
<p>After than, it&#8217;s a lot happier:<br />
dan@dan-desktop:~$ python do_auth.py -i 10.1.1.1 -u alex -d 192.168.1.1 -l log.txt -f do_auth.ini -D<br />
dan@dan-desktop:~$ cat log.txt<br />
2010-03-25 18:16:06: User &#8216;alex&#8217; allowed command &#8217;show users wide&#8217; to device &#8216;192.168.1.1&#8242; in &#8216;admin&#8217;-&gt;&#8217;command_permit&#8217;</p>
<p>The debug command is hard coded to &#8220;show users wide.&#8221;  I was going to change that to allow a variable, but I was finished with the program and nobody else had any interest in it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by Alex</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-576</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 24 Mar 2010 05:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-576</guid>
		<description>Sorry about the [users] section. I  actually do have it on the .ini file. I must have missed in during copy. I do get output from do_auth.pyc. It prints the  content of the do_auth.py. What cat do_auth.py would do. Should that be the case?</description>
		<content:encoded><![CDATA[<p>Sorry about the [users] section. I  actually do have it on the .ini file. I must have missed in during copy. I do get output from do_auth.pyc. It prints the  content of the do_auth.py. What cat do_auth.py would do. Should that be the case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by helpdeskdan</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-575</link>
		<dc:creator>helpdeskdan</dc:creator>
		<pubDate>Tue, 23 Mar 2010 23:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-575</guid>
		<description>Well, you are missing [users] at the top.  However, you should still get a log in /var/log/log.txt.  Do you get output from &quot;python do_auth.py&quot;?  (or .pyc)</description>
		<content:encoded><![CDATA[<p>Well, you are missing [users] at the top.  However, you should still get a log in /var/log/log.txt.  Do you get output from &#8220;python do_auth.py&#8221;?  (or .pyc)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by Alex</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-574</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 23 Mar 2010 06:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-574</guid>
		<description>#This is my do_auth.ini
alex = 
admin
[admin]
host_allow =
.*
device_permit =
.*
command_permit =
.*


# This is my tacacs cfg
key = xxxxx
accounting file = /var/log/tac_acc.log
default authentication = file /etc/passwd
user = DEFAULT {
member = do_auth_access
}
group = do_auth_access {
default service = permit
service = exec {
priv-lvl = 15
}
enable = file /etc/passwd
after authorization &quot;/usr/bin/python /etc/tacacs/do_auth.pyc -i $address   -u $user -d $name -l /var/log/log.txt -f /etc/tacacs/do_auth.ini&quot;
}

#log.txt is empty</description>
		<content:encoded><![CDATA[<p>#This is my do_auth.ini<br />
alex =<br />
admin<br />
[admin]<br />
host_allow =<br />
.*<br />
device_permit =<br />
.*<br />
command_permit =<br />
.*</p>
<p># This is my tacacs cfg<br />
key = xxxxx<br />
accounting file = /var/log/tac_acc.log<br />
default authentication = file /etc/passwd<br />
user = DEFAULT {<br />
member = do_auth_access<br />
}<br />
group = do_auth_access {<br />
default service = permit<br />
service = exec {<br />
priv-lvl = 15<br />
}<br />
enable = file /etc/passwd<br />
after authorization &#8220;/usr/bin/python /etc/tacacs/do_auth.pyc -i $address   -u $user -d $name -l /var/log/log.txt -f /etc/tacacs/do_auth.ini&#8221;<br />
}</p>
<p>#log.txt is empty</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by helpdeskdan</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-570</link>
		<dc:creator>helpdeskdan</dc:creator>
		<pubDate>Fri, 19 Mar 2010 21:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-570</guid>
		<description>Post the log.txt &amp; do_auth,ini</description>
		<content:encoded><![CDATA[<p>Post the log.txt &amp; do_auth,ini</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by Alex</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-569</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 19 Mar 2010 10:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-569</guid>
		<description>I have done each step as you have directed. However, I cannot log in to my router. However, using tac_plus.conf configuration  works well. Anything I need to look out for. 

I get the following

telnet 172.17.0.68
Trying 172.17.0.68...
Connected to 172.17.0.68.
Escape character is &#039;^]&#039;.


User Access Verification

Username: xxxx
Password: 
% Authorization failed.
Connection closed by foreign host.</description>
		<content:encoded><![CDATA[<p>I have done each step as you have directed. However, I cannot log in to my router. However, using tac_plus.conf configuration  works well. Anything I need to look out for. </p>
<p>I get the following</p>
<p>telnet 172.17.0.68<br />
Trying 172.17.0.68&#8230;<br />
Connected to 172.17.0.68.<br />
Escape character is &#8216;^]&#8217;.</p>
<p>User Access Verification</p>
<p>Username: xxxx<br />
Password:<br />
% Authorization failed.<br />
Connection closed by foreign host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by helpdeskdan</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-533</link>
		<dc:creator>helpdeskdan</dc:creator>
		<pubDate>Fri, 26 Feb 2010 00:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-533</guid>
		<description>DanH - try &#039;DEFAULT&#039; instead of &#039;default&#039; in your tac_plus.conf

Skip - This code works by commands, not privilege levels.  Not that it couldn&#039;t be done, I just did not have a need at the time to modify the tac pairs.  You could take priv-lvl = 15 out of the config and deny &quot;enable&quot; to the users you don&#039;t want to enable.  Or, put them in a different group in tac_plus.conf, but that means you now have to modify two configuration files instead of one. 

The examples above were done in much haste, there might be errors; if other people are actually interested in this, I&#039;ll try to fix it up a bit.  My current employer doesn&#039;t use tac_plus, so I don&#039;t have a testing environment any more.</description>
		<content:encoded><![CDATA[<p>DanH &#8211; try &#8216;DEFAULT&#8217; instead of &#8216;default&#8217; in your tac_plus.conf</p>
<p>Skip &#8211; This code works by commands, not privilege levels.  Not that it couldn&#8217;t be done, I just did not have a need at the time to modify the tac pairs.  You could take priv-lvl = 15 out of the config and deny &#8220;enable&#8221; to the users you don&#8217;t want to enable.  Or, put them in a different group in tac_plus.conf, but that means you now have to modify two configuration files instead of one. </p>
<p>The examples above were done in much haste, there might be errors; if other people are actually interested in this, I&#8217;ll try to fix it up a bit.  My current employer doesn&#8217;t use tac_plus, so I don&#8217;t have a testing environment any more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Easier Tacacs Configurations with do_auth by Skip</title>
		<link>http://tacacs.org/2009/09/26/easy-tacacs-control-with-do_auth/comment-page-1/#comment-531</link>
		<dc:creator>Skip</dc:creator>
		<pubDate>Thu, 25 Feb 2010 21:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sackheads.org/tacacsplus/?p=60#comment-531</guid>
		<description>Dan,
I would like to implement this but have a question first.
The way I would like to use it is, default user has no access and then set the privileged user according to their access level. Is there away to do that?</description>
		<content:encoded><![CDATA[<p>Dan,<br />
I would like to implement this but have a question first.<br />
The way I would like to use it is, default user has no access and then set the privileged user according to their access level. Is there away to do that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
