The authentication-mode command configures an authentication mode for an authentication scheme.
The undo authentication-mode command restores the default authentication mode in an authentication scheme.
By default, local authentication is used.
| Parameter | Description | Value |
|---|---|---|
ad |
Authenticates users using an AD server. To perform AD authentication, configure an AD authentication server in an AD server template. |
- |
hwtacacs |
Authenticates users using an HWTACACS server. To perform HWTACACS authentication, configure an HWTACACS authentication server in an HWTACACS server template. |
- |
ldap |
Authenticates users using an LDAP server. To perform LDAP authentication, configure an LDAP authentication server in an LDAP server template. |
- |
local |
Authenticates users locally. |
- |
radius |
Authenticates users using a RADIUS server. To perform RADIUS authentication, configure a RADIUS authentication server in a RADIUS server template. |
- |
Usage Scenario
To authenticate users, configure an authentication mode in an authentication scheme.
In the sequence of local authentication followed by remote authentication:
If a login account is not created locally but exists on the remote server, the authentication mode is changed from local authentication to remote authentication.
If a login account is created locally and on the remote server, and local authentication fails because the password is incorrect, remote authentication will not be performed.
In the sequence of remote authentication followed by local authentication:
If a login account is created locally but not on the remote server, remote authentication fails and local authentication will not be performed.
A user is authenticated using the local authentication mode only when the remote server is Down or does not respond to the user's authentication request.
After the authentication-mode radius local command is used, the device cannot complete RADIUS authentication if it fails to connect to the RADIUS authentication server. In this case, the device starts local authentication.
After the authentication-mode local radius command is used, if the entered user name exists on the device but the entered password is incorrect, the user fails the authentication; if the entered user name does not exist on the device, the user is redirected to the RADIUS authentication mode and is authenticated based on user information on the RADIUS server.