This section provides an example for configuring a Sun ONE LDAP server to implement authentication on Internet access users when a FW works as an egress gateway.
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 1. Details are as follows:
The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific behavior control and permission assignment. Requirements are as follows:
This example describes only how to configure user management and authentication.
Information about users, departments, and groups (static groups) on the LDAP server needs to be imported to the FW. Select the import type as required. For example, when a large number of users exist on the LDAP server, you can import departments and groups and implement department- and group-specific permission control.
Configure a policy to import user information from the LDAP server to the FW.
User groups on the FW correspond to departments on the LDAP server, and security groups on the FW correspond to static groups on the LDAP server.
Item |
Data |
Description |
|---|---|---|
LDAP server |
On a FW, set the parameters for communication with an LDAP server. The parameter settings on the FW must be consistent with those on the LDAP server. |
|
User information import policy |
Import users from the LDAP server to the FW. |
|
Authentication domain |
The cce.com authentication domain is used during authentication. |
|
Authentication policy |
The R&D employee and marketing employee can access network resources only after being authenticated by a FW. |
The following example describes how to configure interface GigabitEthernet 0/0/3. You can configure other interfaces based on the networking diagram.
Zone |
trust |
|---|---|
IP Address |
10.3.0.1/24 |

The parameters on the FW must be consistent with those on the LDAP server.

For the V600R007C20 version, whether to enable SSL for LDAP authentication cannot be configured on the web UI. When you configure the LDAP server on the web UI, no SSL (no-ssl) is enabled by default. To enable SSL (ssl), click CLI Console in the lower right corner of the web page. On the CLI configuration page that is displayed, run the ldap-server authentication 10.2.0.50 389 ssl command in the corresponding LDAP server template view. When ssl is deployed, it must also be enabled on the LDAP server. For details, see the operating system guide of the LDAP server. From V600R007C20SPC100, you can configure whether to enable SSL for LDAP authentication on the Web UI. The following uses no-ssl as an example.
Click Detect. In the dialog box that is displayed, click OK and enter the user name and password that are configured on the LDAP server. Click Start Checking to check the connectivity to the LDAP server.
Name |
auth_policy_service |
|---|---|
Source Zone |
trust |
Source Address/Region |
10.3.0.0/24 |
Action |
Portal authentication |
Portal Authentication Template |
Disable |

The domain name must be the same as that on the LDAP server.

Click Configure on the right of Server Import Policy. A dialog box is displayed. Click Import Immediately corresponding to policy_import. After the import is complete, the user groups and users on the LDAP server are displayed in User/User Group/Security Group Management List.

# sysname FW # ldap-server template auth_server_ldap ldap-server authentication 10.2.0.50 389 no-ssl ldap-server authentication base-dn dc=cce,dc=com ldap-server authentication manager uid=admin_test %$%$>884X|-geW:1_*O\(6EI+|sj%$%$ %$%$>884X|-geW:1_*O\(6EI+|sj%$%$ ldap-server group-filter ou ldap-server user-filter uid ldap-server server-type sun-one # interface GigabitEthernet0/0/1 ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 ip address 10.2.0.1 255.255.255.0 # interface GigabitEthernet0/0/3 ip address 10.3.0.1 255.255.255.0 # firewall zone trust add interface GigabitEthernet0/0/3 # firewall zone untrust add interface GigabitEthernet0/0/1 # firewall zone dmz add interface GigabitEthernet0/0/2 # aaa authentication-scheme ldap authentication-mode ldap # domain cce.com authentication-scheme ldap ldap-server auth_server_ldap service-type internetaccess internet-access mode password new-user add-temporary group /cce.com auto-import policy_import # user-manage import-policy policy_import from ldap server template auth_server_ldap server basedn dc=cce,dc=com destination-group /cce.com user-attribute uid user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(uid=*)) group-filter (|(objectclass=organizationalUnit)(ou=*)) security-group-filter (&(objectclass=groupofuniquenames)(!(memberURL=*))) import-type all import-override enable sync-mode incremental schedule interval 120 # auth-policy rule name auth_policy_service source-zone trust source-address 10.3.0.0 24 action auth # security-policy rule name policy_local_01 source-zone trust destination-zone local source-address 10.3.0.0 24 service protocol tcp destination-port 8887 action permit rule name policy_local_02 source-zone local destination-zone dmz destination-address 10.2.0.50 32 action permit rule name policy_sec_02 source-zone trust source-address 10.3.0.0 24 destination-zone untrust action permit rule name policy_sec_03 source-zone trust source-address 10.3.0.0 24 destination-zone dmz action permit # The following configuration is used to perform a one-time operation and not stored in the configuration profile. user-manage user-import demo.csv auto-create-group override test-aaa testname testpassword ldap-template auth_server_ldap