An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 1.

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 section describes only the operations for online querying, importing, and referencing users from an AD server and configuring authentication domains and server import policies. For the AD server authentication, AD LDAP server authentication, and AD SSO configuration operations, see the corresponding configuration description or configuration examples.
Configure new user options of the authentication domain and associate the authentication domain with the configured server import policy. Otherwise, the user cannot be queried online using the policy.
Configure a security policy on the FW, online query and import user group marketing and users rd_1 and rd_2 from the AD server, and reference them in the security policy to allow the specified users on the intranet to access the Internet.
Only the AD and AD LDAP servers support remote query and import of users, user groups, or security groups.
This section describes how to online query, import, and reference users in security policies. You can also online query, import, and reference users, user groups, or security groups in other policies that use user as a matching condition.
Item |
Data |
Description |
|---|---|---|
AD server |
On a FW, set the parameters for communication with an AD server. The parameter settings on the FW must be consistent with those on the AD server. |
|
User information import policy |
Import users from the AD server to the FW. |
|
Security Policy |
|
Allow only marketing employees (user group: marketing) and some R&D employees (such as users rd_1 and rd_2) to access the Internet. |
The import type and filtering parameter configured in the server import policy do not take effect in this scenario.
In this scenario, only the specified user, user group, or security group needs to be imported. Therefore, do not select Incremental Synchronization or Full Synchronization.

The authentication domain must be associated with the configured server import policy. Otherwise, the users, user groups, or security groups on the server cannot be online queried using the policy.
# sysname FW # ad-server template auth_server_ad ad-server authentication 10.3.0.251 88 no-ssl ad-server authentication base-dn dc=cce,dc=com ad-server authentication manager cn=administrator,cn=users %$%$M#._~J4QrR[kJu7PUMtHUqh_%$%$ ad-server authentication host-name cce.com ad-server authentication ldap-port 389 ad-server user-filter sAMAccountName ad-server group-filter ou # security-policy rule name policy_sec source-zone trust destination-zone untrust source-address 10.3.0.0 24 user /cce.com/markting user rd_1@cce.com user rd_2@cce.com action permit # user-manage import-policy policy_import from ad server template auth_server_ad server basedn dc=cce,dc=com destination-group /cce.com user-attribute sAMAccountName user-filter (&(|(objectclass=person)(objectclass=organizationalPerson))(cn=*)(!(objectclass=computer))) group-filter (|(objectclass=organizationalUnit)(ou=*)) import-type user-group import-override enable # aaa domain cce.com service-type internetaccess internet-access mode single-sign-on new-user add-temporary group /cce.com auto-import policy_import