LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2008, 10:18 AM   #1
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169
Blog Entries: 1

Rep: Reputation: 32
TACACS+ with privilege levels.


I have a test box running TAC_Plus and a test switch for AAA at work. The switch is accessing the TACACS+ server just fine. Every time someone from the networking team moves on with another job we have to reset the passwords. The network has 250+ devices on it so a local database would be very tedious to manage. This is my first time working with AAA and TACACS+. I just need two accounts one with limited access to commands defined by us and then a full level 15 Admin account. Below is the test setup am I even going the right direction with this or is there a better way?

Summery:
Define Users with different privilege levels(support and admin).
Fall back to line login if TACACS+ is not functional.

Code:
! 
version 12.2 
! 
enable secret 5 $1$.x.E$eIZdDoxO0Axcilulx15bE. 
enable password 7 00071A150754 
! 
username test privilege 15 secret 5 $1$GYVq$W9kLLPHEtaCl23VDVLG1B1 
aaa new-model 
aaa authentication login telnet group tacacs+ line 
aaa authentication login console group tacacs+ line 
aaa authentication enable default group tacacs+ enable 
! 
aaa session-id common 
! 
tacacs-server host 10.x.x.x 
tacacs-server directed-request 
tacacs-server key 7 071B245F5A021C1C 
! 
line con 0 
password 7 045802150C2E 
login authentication console 
line vty 0 4 
password 7 02050D4808095E 
login authentication telnet 
line vty 5 15 
password 7 14141B180F0B 
!
Code:
### tac_plus.conf file

key = testkey 

accounting file = /var/log/tac_plus.acct 

user = tester { 
	loging = cleartext "loSpjp7SWwDy6" #logtest 
	enable = cleartext "N1J88Idk0aNTE" #entest 
	name = "test" 

	cmd = show { 
		permit .* 
	} 
}
Thanks,
Kyle
 
Old 06-07-2008, 12:32 PM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
Your configuration looks pretty good to me, although you probably also want to add in aaa authorization commands so the network devices check what authenticated users can/cannot do. This page looked to be very similar to what you are trying to do:

http://bdsltd.co.uk/network/cisco/tacacs.htm
 
Old 06-07-2008, 03:08 PM   #3
lifeforce4
Member
 
Registered: May 2003
Location: 2:16:840
Distribution: Slackware, CentOS, Arch, Debian
Posts: 169

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by bmarx View Post
Your configuration looks pretty good to me, although you probably also want to add in aaa authorization commands so the network devices check what authenticated users can/cannot do. This page looked to be very similar to what you are trying to do:

http://bdsltd.co.uk/network/cisco/tacacs.htm
My question is do I have to add to one user the cmd = command { permit .*} for every single command to have a privilege level of 15 full administrative rights for one user? Basically the three network admins will know the line passwords and if the tacacs goes down thats still fine they will be able to access it. What I am worried about is if the tacacs is up and they dont have full functional control or worse yet. The limited account has commands not assigned to it.

I guess I'm just trying to see the links between who gets defined 15 access and who gets limited privileges.

Thank for the help,
Kyle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't my FC3 rc0 and rc6 levels not call kill script when entering those levels? dvkwiatk Linux - General 2 11-11-2006 08:09 AM
tacacs sever sajigeorge Linux User Groups (LUG) 1 02-11-2006 07:57 AM
Tacacs + authentication juanb Linux - Security 0 10-13-2004 05:00 AM
Linux login using Tacacs mikeclarke99 Linux - Security 1 06-07-2003 07:04 AM
Tacacs and etc/shadow daskiew Linux - Networking 1 03-28-2003 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration