09-26-2011 07:51 AM
Please forgive me if I don't explain this as clearly as I'm trying to.
I'm trying to setup local usernames with specific privilege levels that will ONLY work on the console port. We currently have our ACS server setup and we have usernames there that give us level-15 privileges as soon as we login through SSH. I have to get rid of the one local username/password we use one our switches when we are on-site working a closet and create user-specific local logins.
Here is the config on the switch that I am testing:
aaa authentication login default group tacacs+
aaa authentication login console local
aaa authorization exec default group tacacs+
aaa authorization commands 15 default group tacacs+
aaa authorization network default local group tacacs+
username test privilege 0 password cisco
username test2 privilege 1 password cisco
username test3 privilege 15 password cisco
line con 0
login authentication console
line vty 0 4
transport input ssh
line vty 0 5
transport input ssh
**The problem I am running into at the moment is that the privilege levels aren't sticking. When I enter the privilege level for "test2" which is 1, it automatically reverts to 0. If I do a show run it will show user "test2" with privilege 0. Currently in the above setup, if I enter "enable" all the test users get privilege level 15. I don't want to have the console port authenticate to ACS server because sometimes if the switch gets discoed from the network, local login is a no-go.
Bottom-line:
-Keep ACS authentication on Line VTY lines
-Add Local-login on Console port. With users with only privilege-15 being able to enter Privilege EXEC Mode.
09-29-2011 01:46 AM
Hi,
Try these...
(Assuming that you have already configured usernames on Router, to be used as local username)
This will prompt for Username, whenever ACS is available; in case of failure, it will ask for local username.
aaa new-model
!
aaa authentication login default local
aaa authentication login
aaa authentication login no-login none
aaa authentication login console group tacacs+ local
aaa authentication username-prompt "Local Username: "
!
aaa session-id common
!
line vty 0 4
login authentication
!
line con 0
login authentication
!
aaa authorization config-commands
aaa authorization exec default group tacacs+ local if-authenticated
aaa accounting exec default start-stop group tacacs+
aaa accounting commands 15 default start-stop group tacacs+
aaa authorization commands 15 default group tacacs+ if-authenticated
HTH,
Smitesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide