Configuring a Domain
Context
The created authentication scheme, accounting scheme, and RADIUS server group are in effect only when they are applied to a domain.
Procedure
- Run system-view
The system view is displayed.
- Run aaa
The AAA view is displayed.
- Run domain domain-name
A domain is created and the domain view is displayed, or the view of an existing domain is displayed.
Two default domains named default and default_admin are available on the device. These two domains can be modified but not deleted.
- If an entered user name does not contain the domain name, the user is authenticated in the default domain. You need to run the default-domain admin domain-name command to specify the default global domain.
- If an entered user name contains the domain name, the domain-name parameter must be correctly specified.
- Run authentication-scheme authentication-scheme-name
The authentication scheme is applied to the domain.
By default, the default authentication scheme is applied to a domain.
- (Optional) Run accounting-scheme accounting-scheme-name
An accounting scheme is applied to the domain.
By default, the default accounting scheme is applied to a domain. In the default accounting scheme, non-accounting is used.
- Run radius server group group-name
A RADIUS server group is applied to the domain.
By default, no RADIUS server group is applied to a domain.
- (Optional) Run block
The domain state is set to block.
When a domain is in the blocking state, users in this domain cannot log in. By default, a created domain is in the active state.
- (Optional) Run access-limit max-number
The maximum number of access users is set for the domain.
By default, the number of access users is not limited.
- (Optional) Run adminuser-priority level
The default user level is set for administrators in the domain.
By default, no default user level is set for administrators in an AAA domain.
- Run quit
You exit the domain view.
- (Optional) Run service-type terminal force-domain domain-name
A forced domain is specified for console login users.
By default, no forced domain is specified for console login users.
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.
- (Optional) Run default-domain admin domain-name
A global default domain is specified for administrators.
The global default domain for administrators is default_admin.
- (Optional) Run domain-name-delimiter delimiter
The domain name delimiter is set.
The default domain name delimiter is @.
- (Optional) Run domainname-parse-direction { left-to-right | right-to-left }
The direction in which the domain name is parsed is specified.
By default, a domain name is parsed from left to right.
- (Optional) Run domain-location { after-delimiter | before-delimiter }
The position of the domain name is specified.
By default, the domain name is placed after the domain name delimiter.
- Run commit
The configuration is committed.