Skip to content
Ask AI

Auth & Accounts

The controller supports users in binding the authentication server and making relevant authentication-related configurations.

The current authentication server needs to be launched in the entity through background configuration first, and then bound to the venue under that entity.

Enter the entity, click on [Auth & Accounts] - [Copy entity ID], and the entity ID will be copied onto the clipboard.

Enter the authentication server to modify the file:

Modify the nac_agent-related configuration in /opt/openwisp2/openwisp2/settings.py

NAC_AGENT = {
'MGMT_INTERFACE': 'Ethernet0',
'FIRMWARE_VERSION': 'v1.0.0',
'BUILD_NUMBER': 1002,
'ENTITY_ID': '3d8bdc44-e96a-4feb-8cf0-328a6a23b976' # ENTITY_ID The associated organization id needs to be obtained from the controller
}
WEBSOCKET_SERVER = {
'HOST': '192.168.0.91', # HOST Controller ip address
'PORT': 15008,
'USE_SSL': True,
'SSL_VERIFY': False,
'HEARTBEAT_INTERVAL': 60,
'WEBSOCKET_CA_CERT': '/opt/openwisp2/nac_agent/certs/ca.crt'
}

Start the ucentral service

systemctl enable openwisp-nac-agent.service
systemctl start openwisp-nac-agent.service

Restart the authentication service

sudo supervisorctl restart openwisp2

After the configuration is completed, you can see that the authentication server is online in the specified organization.

After the authentication server is launched in the entity, all venues within the entity can be bound to this server.

Enter the venue and click on [Configuration] - [Auth & Accounts].

Click on the connected authentication server and click [Save] to bind the server to the venue.

The authentication configuration needs to be carried out at the venue.

Name: The unique identifier of a user group, used for management and identification

Auth Type: The authentication methods that users in this group need to use when logging into the network. Users can choose between username-password authentication and MAC address authentication according to their needs.

Priority: When a user belongs to multiple groups or there are conflicting rules, determine which group’s permissions take effect. The larger the number, the higher the priority.

Max Number of Online Clients Per User: Limit the number of devices that each user account in this group can connect to the network simultaneously.

Account Expiration Timestamp: Set the overall validity period for the entire user group, which will automatically expire after the period ends.

Group Permission – ACL Table Name: Bind an Access Control List (ACL). An ACL is a pre-configured set of network access rules (such as allowing/denying access to a certain server or network segment).

Group Permission – VLAN ID: Specify which VLAN the group of users will be assigned to after successful authentication.

Password Cycle: Set the validity period of the user password. During the password retention period, authentication is automatically completed through device MAC authentication, and the user does not need to re-enter the password. The password needs to be re-entered after expiration.

OAuth E-mail Domain: The email suffix bound to this group during OAuth login, for example: @asterfusion.com

Description: Group description information

User Group Name: Select the created user group

User Name: The user’s unique identifier, used for management and identification

E-mail: User email, currently only serving a presentation function

Phone Number: User’s phone number, which currently only serves a display purpose

Description: User description information

When the authentication type of the selected user group is user password, a password needs to be created.

When the user group uses MAC authentication, the MAC address needs to be filled in.

The authentication server will only respond to authentication requests from allowed network segments with matching passwords.

NAS IP Addr: Fill in the address range allowed for access authentication. The access authentication point for wired terminals is the switch, and for wireless terminals, it is the AP.

Secret: It needs to be the same as the “Wi-Fi Configuration / Network Activation / SSIDs / RADIUS / Authentication Secret” in this venue

Supports interception by username and MAC address.