When a Zyxel firewall uses Active Directory (AD) for user authentication, the firewall must connect to the AD server and find user accounts correctly.
Two important settings are used for this connection:
- Search Base DN — defines where the firewall searches for user accounts.
- Bind DN Base — defines where the authentication account is located in Active Directory.
This article explains how these settings work and shows two common configuration examples:
- The user account for Active Directory authentication is located in the default “Users” OU.
- The user account for Active Directory authentication is not located in the default “Users” OU. In this case, you must configure the optional Bind DN Base setting in Advanced Settings.
Scenario 1 — User Located in the Default “Users” OU
If the user account for Active Directory authentication is located in the default “Users” OU, you do not need to configure the optional Bind DN Base parameter.
In this example, the bind account zyxel_test is stored in the default Users container in Active Directory.
Example:
CN=zyxel_test,OU=IT,DC=example,DC=local| Component | Description |
|---|---|
| CN=zyxel_test | LDAP service account |
| OU=IT | OU where the account is stored |
| DC=example | Active Directory domain |
| DC=local | Domain zone |
On the Active Directory server:
- Open:
- Active Directory Users and Computers
- Locate the LDAP service account
- Open:
- Properties → Attribute Editor
- Find the attribute:
distinguishedName
Configure AAA Server on the Firewall
After verifying the LDAP service account on the Active Directory server, configure the AAA Server profile on the firewall.
Go to:
User & Authentication > User Authentication > AAA Server
- Click Add to create a new AAA Server profile.
- Configure the following settings:
| Setting | Example Value |
|---|---|
| Name | AD_Server |
| Server Address | 192.168.1.10 |
| Port | 389 |
| Use SSL | Disabled |
| Search time limit | 5 |
| Case-sensitive User Names | Enabled |
| Domain Name | example.local |
| User Name | zyxel_test |
| Password | Password of the LDAP service account |
- Click Advanced Settings.
- Leave the Bind DN Base field empty because the account is located in the default Users container.
- In the Configuration Validation section:
- Enter a domain user account
- Click Test
If the configuration is correct, the firewall will display:
Test Status: OKThe Returned User Attributes section will display the LDAP user information retrieved from the Active Directory server.
Scenario 2 — User Not Located in the Default “Users” OU
If the user account for Active Directory authentication is not located in the default “Users” OU, you must configure the optional Bind DN Base parameter.
In this example, the bind account zyxel_test is stored inside the IT Organizational Unit (OU) in Active Directory.
Example:
CN=zyxel_test,OU=IT,DC=example,DC=local| Component | Description |
|---|---|
| CN=zyxel_test | LDAP service account |
| OU=IT | Organizational Unit where the account is stored |
| DC=example | Active Directory domain |
| DC=local | Domain zone |
On the Active Directory Server
Open:
Active Directory Users and Computers
- Locate the LDAP service account.
Open:
Properties → Attribute Editor
Find the attribute:
distinguishedName
- Verify that the DN contains the required OU path.
Configure AAA Server on the Firewall
After verifying the Distinguished Name (DN) on the Active Directory server, configure the AAA Server profile on the firewall.
Go to:
User & Authentication > User Authentication > AAA Server
- Click Add to create a new AAA Server profile.
- Configure the following settings:
| Setting | Example Value |
|---|---|
| Name | AD_Server |
| Server Address | 192.168.1.10 |
| Port | 389 |
| Use SSL | Disabled |
| Search time limit | 5 |
| Domain Name | example.local |
| User Name | zyxel_test |
| Password | Password of the LDAP service account |
Because the LDAP service account is located outside the default Users container, the firewall cannot automatically determine the correct LDAP search path.
During the configuration validation, the firewall may return the following error:
Test Status: Invalid DN syntaxIn this case, you must manually configure the Bind DN Base parameter with the correct Organizational Unit (OU) path.

Comments
0 commentsPlease sign in to leave a comment.