Associate the remote authentication, authorization, and accounting schemes of the domain user with the server template by configuring a domain. Then, corresponding authentication, authorization, and accounting will be implemented for the users accessing the domain.
The system view is displayed.
The AAA view is displayed.
A forced domain is configured for a console interface.
When users logging in through the console interface and users logging in using other login methods must be distinguished, run the service-type terminal force-domain command to specify a forced domain for the console interface. After the configuration becomes effective, users logging in through the console interface automatically enter the forced domain and are not allocated any other domain based on the user names. In this manner, users logging in through the console interface and users logging using other methods are distinguished and allocated different rights.
In VS mode, this command is supported only by the admin VS.
The domain name created in the preceding step is configured as the default domain name.
After you manually create a domain name, for example, first_domain, you must suffix @first_domain to the user name during authentication, which is inconvenient. To facilitate user authentication, run the default-domain command to set the domain name first_domain as the default domain name. With this configuration, @first_domain is automatically suffixed to user names.
The domain name delimiter is configured.
The domain name location is configured so that the system can correctly parse the user name and domain name.
By default, a user uses user name@domain name to log in to a device. To configure a user to use domain name@user name to log in, run the domain-location command to configure the domain name to be located before the delimiter.
The direction in which the domain name is parsed is configured so that the system can correctly parse the user name and domain name.
When a user name contains multiple domain name delimiters, run the domainname-parse-direction command to configure the direction in which the domain name is parsed.Use user1@abcd@domain1 as an example. When the domain name is parsed from left to right, the first delimiter @ from the left is considered the domain name delimiter. When the domain name is parsed from right to left, the first delimiter @ from the right is considered the domain name delimiter. The other delimiters are considered part of the user name or domain name.
A domain is created and the AAA domain view is displayed.
The authentication scheme is configured for the domain.
The authorization scheme is configured for the domain.
The accounting scheme is configured for the domain.
Run the radius-server group (AAA domain view) group-name command to configure the RADIUS server group for the domain.
In VS mode, this command is supported only by the admin VS.
Run the hwtacacs-server template-name command to configure the HWTACACS server template for the domain.
The status of the domain is configured.
When a domain is in block state, users of the domain cannot access the network.
The maximum number of access users for the domain is set.
The default user level for administrators in a specific AAA domain is configured.
If a user level is not assigned by the local device (using the local-user level command) or by a remote server, administrators are not allowed to access a specific domain in management mode. To resolve this issue, run the adminuser-priority command to configure a default level for administrators in a specific AAA domain. Then, the administrators will take this user level for login.
A user level assigned by the local device or a remote server takes precedence over a user level configured using the adminuser-priority command. When the user is added to a user group, the configuration of user group takes precedence over a user level configured using the adminuser-priority command.
The configured default level of the local user cannot be higher than that of the login-in user.
The configuration is committed.