06-28-2007 06:49 AM - edited 03-05-2019 05:01 PM
We can get to EXEC mode on our console ports when TACACS is running, but can't go to PRIV mode. Disconnecting TACACS permits full access through the console. I know we're missing something simple, but can't find it. Please help.
06-28-2007 08:51 AM
Please paste the device config to look what's been configured on the box.
-amit singh
06-28-2007 09:02 AM
06-28-2007 09:20 AM
Try removing this command " aaa authorization exec default group tacacs+ none " and it should allow you to go to priviledge mode first instead of exec mode. You can add "aaa authorization network default group tacacs+ none" command instead of the above listed command.
Let me know if that helps.
-amit singh
06-28-2007 04:54 PM
Amit
I do not think that this will make much difference since Cisco by default does not do authorization on the console.
In addition to the configuration of aaa it would be very helpful to see the complete config of the console and the vty lines.
HTH
Rick
07-05-2007 10:48 AM
Haven't had time to test sorry.
Yup, removing the command didn't make a difference. However, now I couldn't go to PRIV mode even through the telnet ports using a valid TACACS account (adding the suggested line didn?t make a difference).
Here are more specifics about the problem. I'm getting an "Error in Authentication" prompt when trying to PRIV mode after logging in with a TACACS account with TACACS running. I'm assuming that the local account is disabled while there's connectivity to the TACACS server because I couldn't long in at all. I'm also including console and vty port settings for your review.
Thanks,
07-05-2007 12:56 PM
Samih
I have looked at the configs and do not see anything that looks wrong. There is one thing that I would suggest doing differently, but I am not sure that it is your problem. When you configure authorization you configure "none" as the alternate method (aaa authorization exec default group tacacs+ none). I would suggest that instead of "none" that you use "if-authenticated".
I am wondering if I am understanding your symptoms correctly. Are you saying that if you login on the console that you get into user mode but that if you enter the enable command (and give the correct password) that you do not get into privilege mode?
HTH
Rick
07-05-2007 01:04 PM
Yup, that's the problem in a nutshell. You can login to the console port using your TACACS account, but can't access PRIV mode once logged in.
Console login works fine once the TACACS account for the specific device is disabled or the server's disconnected.
I'll look into the "if-authenticated" command you suggest. Thanks for your effort.
07-05-2007 01:15 PM
Samih
The symptoms sound like the user ID you are using on the console may not be configured in TACACS to allow privilege mode. Are you perhaps using one ID for the console and a different ID for the vty login? If you login on the console and use the same ID that works on the vty do you still have a problem?
HTH
Rick
07-05-2007 01:43 PM
The problem occurs when using the same user ID that works on vty. I get the "Error in Authentication" statement after typing enable and password.
07-05-2007 05:27 PM
Samih
I have looked at the configs that you posted and I do not find anything in them that would explain the symptoms that you describe. Are you sure that what you posted is exactly the config of the router?
If so, I would suggest running debug aaa authentication and debug tacacs authentication and then do a telnet which does go to privilege mode and a session on the console that does not. Capture and post the debug output. This may help us understand what is happening.
HTH
Rick
07-06-2007 01:14 PM
07-06-2007 01:24 PM
Samih
Thanks for the additional information. It has most, but not all, of what I asked for. I wanted to see a vty session login and go successfully to privilege mode but your debug only shows it logging in and then logging out without going to privilege mode.
One other question occurs to me, when you login on the vty you are using ID temp000, and what password are you using to get into privilege mode? And when you login on the console using ID temp000 and attempt to go to privilege mode what password are you using?
HTH
Rick
07-06-2007 02:10 PM
Thanks again for your quick response Rick.
The TACACS account for "temp000" (not the real UserID) is set to put me in PRIV mode automatically. I can't type enable because I'm already there.
I'm using my domain password when logging using "temp000". I tried both my domain and the local enable secret password when logged in as "temp000" through the console port and got identical results with both.
07-06-2007 02:35 PM
Samih
The additional information here is quite helpful. It explains much of what is happening. If you have TACACS configured to put the user ID directly into privilege mode then that will work when logging in via vty but will not work when logging in via console. Putting you directly into privilege mode depends on the operation of authorization and Cisco does perform authorization on the vty lines but by default does not do this on the console. So on the console you login and get to user mode and then must enter the enable command and enter the appropriate password to get into privilege mode. When entering the enable command when TACACS is working you would normally enter the users TACACS password again to get into privilege mode.
HTH
Rick
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