Figure 1 shows the network topology. Mobile users can access resources at the headquarters using SSL VPNs. An LDAP server is used to authenticate access users.
The FW supports MS Active Directory (AD LDAP), Sun ONE LDAP, and Open LDAP servers. This section uses the Sun ONE LDAP server as an example.
Requirements are as follows:
Item |
Data |
|---|---|
Interface |
Interface ID: GigabitEthernet 0/0/1 IP address: 1.1.1.1/24 Security zone: Untrust |
Interface ID: GigabitEthernet 0/0/2 IP address: 10.2.0.1/16 Security zone: Trust |
|
Teleworker account |
Top executive User name: user_0001 Group: /cce.com/director |
Common employee User name: user_0002 Group: /cce.com/employee |
|
Virtual gateway |
Name: example Interface: GigabitEthernet 0/0/1 Domain name: example.huawei.com Maximum number of users: 150 Maximum number of online users: 100 |
Sun ONE LDAP server |
IP address: 10.2.0.155 Port: 389 |
Web proxy resource |
Name: Webmail; link: http://10.2.0.10 Name: ERP; link: http://10.2.0.11 |
Network extension |
Network extension address pool: 172.16.1.1-172.16.1.100 Routing mode: Manual Intranet subnet accessible to network extension users: 10.2.0.0/16 |


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.155 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.
If you are unfamiliar with the LDAP server and cannot provide the server name, Base DN, or filter field values, you can use the LDAP Browser/Editor software to connect to the LDAP server to query the attribute values. The LDAP Browser/Editor is used as an example. The LDAP server attributes and mappings between the server attributes and parameters on the FW are as follows.

Click Test. In the dialog box that is displayed, click OK and enter the user name and password. Click Start to check the connectivity to the LDAP server.
The user name and password used for the test must be the same as those on the LDAP server.


When the FW uses AD or LDAP authentication, the authentication domain name configured on the FW must be the same as that configured on the authentication server. In this example, the domain name on the LDAP server is cce.com. Therefore, the authentication domain name must be set to cce.com on the FW.


After the policy is created, click
to import the users and organizational structures from the authentication server to the FW.

After the import succeeds, choose to view the user and organizational structure information.

Virtual gateways of different versions require Active controls of different versions to be installed on the client. When a client is used to access virtual gateways of different versions. Delete the old Active control and install a new one for accessing a new virtual gateway. Otherwise, the browser will be stuck at the control loading page.
If the client is on a PC, run the following command to delete a control:
PC> regsvr32 SVNIEAgt.ocx -u -s PC> del %systemroot%\SVNIEAgt.ocx /q PC> del %systemroot%\"Downloaded Program Files"\SVNIEAgt.inf /q PC> cd %appdata% PC> rmdir svnclient /q /s


# ldap-server template ldap_server ldap-server authentication 10.2.0.155 389 no-ssl ldap-server authentication base-dn dc=cce,dc=com ldap-server authentication manager uid=manager_user %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$ ldap-server group-filter ou ldap-server authentication-filter (objectclass=*) ldap-server user-filter uid ldap-server server-type sun-one undo ldap-server authentication manager-with-base-dn enable # 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.0.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/2 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # user-manage import-policy ldap_server from ldap server template ldap_server server basedn dc=cce,dc=com server searchdn dc=cce,dc=com destination-group /cce.com user-attribute uid user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(uid=*)) group-filter (|(objectclass=organizationalUnit)(ou=*)) import-type user-group import-override enable sync-mode incremental schedule interval 120 sync-mode full schedule daily 01:00 # aaa authentication-scheme ldap authentication-mode ldap # domain cce.com authentication-scheme ldap ldap-server ldap_server service-type internetaccess ssl-vpn reference user current-domain new-user add-temporary group /cce.com auto-import ldap_server # v-gateway example interface GigabitEthernet0/0/1 private example.huawei.com v-gateway example authentication-domain cce.com v-gateway example max-user 150 v-gateway example cur-max-user 100 # v-gateway example basic ssl timeout 5 ssl lifecycle 1440 service web-proxy enable web-proxy web-link enable web-proxy proxy-resource Webmail http://10.2.0.10 show-link web-proxy proxy-resource ERP http://10.2.0.11 show-link network-extension enable network-extension keep-alive enable network-extension netpool 172.16.1.1 172.16.1.100 255.255.255.0 network-extension mode manual network-extension manual-route 10.2.0.0 255.255.0.0 role role director condition all role director network-extension enable role director web-proxy enable role director web-proxy resource ERP role director web-proxy resource Webmail role employee condition all role employee web-proxy enable role employee web-proxy resource ERP role employee web-proxy resource Webmail # security-policy rule name policy_sslvpn_1 source-zone untrust destination-zone local destination-address 1.1.1.1 32 service https action permit rule name policy_sslvpn_2 source-zone local destination-zone trust destination-address 10.2.0.10 32 destination-address 10.2.0.11 32 action permit rule name policy_sslvpn_3 source-zone untrust destination-zone trust source-address range 172.16.1.1 172.16.1.100 destination-address 10.2.0.0 16 action permit rule name policy_ldap_server source-zone local destination-zone trust destination-address 10.2.0.155 32 action permit # The following configuration is used to perform a one-time operation and not stored in the configuration profile. execute user-manage import-policy ldap_server # The following configuration is stored in the database, but not in the configuration profile. v-gateway example vpndb group /cce.com/director group /cce.com/employee role role director group /cce.com/director role director group /cce.com/employee