You configure users at the users user level.
To add users, use the following command:
Admin@nodename# create users user <parameter>
Available parameters:
Parameter |
Description |
---|---|
enabled |
Enable/disable the user. |
name |
The username. |
login |
User login for login/password identification. In this case, you will need to configure the captive portal where a user can enter their login name and password for authentication. |
password |
User password for login/password identification. In this case, you will need to configure the captive portal where a user can enter their login name and password for authentication. |
expiration-date |
The expiration date for the user account. Format: YYYY-MM-DD. |
groups |
Groups to add the user to. |
ip |
IP addresses to identify the user. The user must always access the network from the specified addresses. |
mac |
MAС addresses to identify the user. The user must always access the network from the specified addresses. |
ip-range |
The IP address range to identify the user. The user must always access the network from an address in the specified range. Format: <IP_start-IP_end>. |
ip-mac |
A combination of MAC and IP addresses to identify the user. The user must always access the network from the specified addresses. Format: <ip-mac>. |
vlan-tag |
The VLAN tag for user identification. |
emails |
User's email addresses. |
phones |
User's phone numbers. |
To update parameters of a user account, use the following command:
Admin@nodename# set users user <user-name> <parameter>
The list of available parameters is the same as the list for creating a user account.
To view a user account, use the following command:
Admin@nodename# show users user <user-name>
Example commands to create and edit a user account:
Admin@nodename# create users user name user_2 login user2 password 12345 expiration-date 2023-12-31 ip [ 192.168.100.112 ] enabled on Admin@nodename# show users user user_2 name : user_2 login : user2 enabled : on expiration-date : December 31, 2023, 00:00 ip : 192.168.100.112 Admin@nodename# set users user user_2 emails [ example@example.org ] Admin@nodename# show users user user_2 name : user_2 login : user2 enabled : on emails : example@example.org expiration-date : December 31, 2023, 00:00 ip : 192.168.100.112
To delete a user account, use the following command:
Admin@nodename# delete users user <user-login>
You can also delete specific data from a user account. Available parameters are (you must specify parameter values to delete):
-
groups
-
static-addresses
-
emails
-
phones