The authorization-mode command configures an authorization mode for an authorization scheme.
The undo authorization-mode command restores the default authorization mode in an authorization scheme.
By default, local authorization is used. The names of local users are case-insensitive.
authorization-mode { hwtacacs | if-authenticated | [ local | local-case ] } * [ none ]
authorization-mode none
undo authorization-mode
Parameter |
Description |
Value |
---|---|---|
hwtacacs |
Indicates that the user is authorized by an HWTACACS server. |
- |
if-authenticated |
Indicates that only the user who succeeds in authentication is authorized. The configuration of if-authenticated authorization does not take effect in RADIUS authentication. |
- |
local |
Authenticates users locally and sets local user names to case-insensitive. |
- |
local-case |
Authenticates users locally and sets local user names to case-sensitive. |
- |
none |
Indicates non-authorization. |
- |
Usage Scenario
To authorize users, configure an authorization mode in an authorization scheme.
You can configure multiple authorization modes in an authorization scheme to reduce the chance of authorization failures.
After the authorization-mode hwtacacs local command is used, if it fails to connect to the HWTACACS authentication server and HWTACACS authorization cannot be performed, the device starts local authorization.
Precautions
By default, users who log in to a device in the VTY view of the console interface are at level 15 and users who log in to a device in other VTY views are at level 0.