---
title: Auth & Accounts
slug: controller-campus/auth-and-accounts
createdAt: 2026-03-24T07:40:24.230Z
---

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

:::hint{type="warning"}
**NOTE:**
This chapter only configures the authentication server. In actual network usage scenarios, switches proxy the authentication of wired terminals; APs proxy the authentication of wireless terminals. It is necessary to configure the authentication functions of switches and APs respectively in the wired service configuration and wireless service configuration.
:::

# <font color="#1d50a2">Bind NAC</font>

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

## <font color="#1d50a2">Online to the Entity</font>

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

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/k21wQ5xd5iqkBy47fZIkz_image.png)

Enter the authentication server to modify the file:

Modify the nac\_agent-related configuration in /opt/openwisp2/openwisp2/settings.py

```text
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

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

Restart the authentication service

```text
sudo supervisorctl restart openwisp2
```

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

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/HAOGMojdjQ-pbseT5AeCs_image.png)

## <font color="#1d50a2">Bind to the Venue</font>

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]**.

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/8iCEx9ugvoAQFpZbieuwV_image.png)

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

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/XAgSBNjUFn2O7HR1WysJ7_image.png)

# <font color="#1d50a2">Configuration</font>

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

## <font color="#1d50a2">User Group</font>

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/8Ou7LILIvoGA1sHFhAHIN_image.png)

**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:&#x20;**&#x54;he email suffix bound to this group during OAuth login, for example: @asterfusion.com

**Description:&#x20;**&#x47;roup description information

:::hint{type="warning"}
**NOTE:**
The function of Priority and Group Permission -ACL Table Name is not supported in version V9 for the time being.
:::

## <font color="#1d50a2">User</font>

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/tXa1tE9W_RHu8JiqbU7yG_image.png)

**User Group Name:&#x20;**&#x53;elect the created user group

**User Name:&#x20;**&#x54;he user's unique identifier, used for management and identification

**E-mail:&#x20;**&#x55;ser email, currently only serving a presentation function

**Phone Number:&#x20;**&#x55;ser's phone number, which currently only serves a display purpose

**Description:&#x20;**&#x55;ser description information

### <font color="#1d50a2">User Password</font>

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

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/cmtMr3VWJ6jnAyq_qQDLd_image.png)

### <font color="#1d50a2">MAC</font>

When the user group uses MAC authentication, the MAC address needs to be filled in.&#x20;

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/RV-sgO71bNdfzZVMLVCwo_image.png)

## <font color="#1d50a2">NAS(Network Access Server)</font>

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

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/69pB9x3GAqFNPJajdgaXo_image.png)

**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.&#x20;

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

## <font color="#1d50a2">Block Access</font>

Supports interception by username and MAC address.&#x20;

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/gVzWIWcAWDI3g79GEYMsC_image.png)

![](https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/D9RYYCcCPE-kijXWBK5Cq_.blob)

