Configuring a Domain
Context
The created authentication scheme, authorization scheme, accounting scheme, and HWTACACS server template 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
An authentication scheme is applied to the domain.
By default, the default authentication scheme is applied to a domain. In the default authentication scheme:- Local authentication is used.
- The offline policy is used upon authentication failures.
- (Optional) Run authorization-scheme authorization-scheme-name
An authorization scheme is applied to the domain.
By default, the default authorization scheme is applied to a domain, and the default authorization mode is local authorization.
- (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 hwtacacs server template-name
An HWTACACS server template is applied to the domain.
By default, no HWTACACS server template is applied to a domain.
- (Optional) Run block
The domain state is configured 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.