Map Users to Groups
Defining policy rules based on user group membership rather than individual users simplifies administration because you don’t have to update the rules whenever group membership changes. Use the following procedure to enable the firewall to connect to your LDAP directory and retrieve Group Mapping information. You can then Enable User- and Group-Based Policy.
The following are best practices for group mapping in an Active Directory (AD) environment:
- If you have a single domain, you need only one group mapping configuration with an LDAP server profile that connects the firewall to the domain controller with the best connectivity. You can add up to four domain controllers to the LDAP server profile for redundancy. Note that you cannot increase redundancy beyond four domain controllers for a single domain by adding multiple group mapping configurations for that domain.
- If you have multiple domains and/or multiple forests, you must create a group mapping configuration with an LDAP server profile that connects the firewall to a domain server in each domain/forest. Take steps to ensure unique usernames in separate forests.
- If you have Universal Groups, create an LDAP server profile to connect to the Global Catalog server.
- Add an LDAP server profile.The profile defines how the firewall connects to the directory servers from which it collects group mapping information. You can add up to four servers to the profile but they must be the sameType.
- Select, clickDeviceServer ProfilesLDAPAdd, and enter aProfile Name.
- For each LDAP server, clickAddand enter the serverName, IP address (LDAP Server), andPort(default is 389).
- Based on yourTypeselection (for example,active-directory), the firewall automatically populates the correct LDAP attributes in the group mapping settings. However, if you customized your LDAP schema, you might need to modify the default settings.
- In theBase DNfield, enter the Distinguished Name (DN) of the LDAP tree location where you want the firewall to begin its search for user and group information.
- Enter the authentication credentials for binding to the LDAP tree in theBind DN,Password, andConfirm Passwordfields. TheBind DNcan be a fully qualified LDAP name (for example,cn=administrator,cn=users,dc=acme,dc=local) or a user principal name (for example,firstname.lastname@example.org).
- ClickOKto save the profile.
- Configure the server settings in a group mapping configuration.
- Select.DeviceUser IdentificationGroup Mapping Settings
- Select a virtual system (Location) if the firewall has multiple.
- ClickAddand enter a uniqueNameto identify the group mapping configuration.
- Select the LDAPServer Profileyou just created.
- (Optional) By default, theUser Domainfield is blank: the firewall automatically detects the domain names for Active Directory (AD) servers. If you enter a value, it overrides any domain names that the firewall retrieves from the LDAP source. Your entry must be the NetBIOS domain name.
- (Optional) To filter the groups that the firewall tracks for group mapping, in the Group Objects section, enter aSearch Filter(LDAP query),Object Class(group definition),Group Name, andGroup Member.
- (Optional) To filter the users that the firewall tracks for group mapping, in the User Objects section, enter aSearch Filter(LDAP query),Object Class(user definition), andUser Name.
- (Optional) To match User-ID information with email header information identified in the links and attachments of emails forwarded to WildFire™, enter the list of email domains in your organization in the Mail Domains section,Domain Listfield. Use commas to separate multiple domains (up to 256 characters). After you clickOK, PAN-OS automatically populates theMail Attributesfield based on your LDAP server type (Sun/RFC, Active Directory, or Novell). When a match occurs, the username in the WildFire log email header section will contain a link that opens theACCtab, filtered by user or user group.
- Make sure theEnabledcheck box is selected.
- Limit which groups will be available in policy rules.Required only if you want to limit policy rules to specific groups. By default, if you don’t specify groups, all groups are available in policy rules.Any custom groups you create will also be available in the Allow List of authentication profiles.
- Add existing groups from the directory service:
- Select theGroup Include Listtab.
- In the Available Groups list, select the groups you want to appear in policy rules and click the Add icon.
- If you want to base policy rules on user attributes that don’t match existing user groups, create custom groups based on LDAP filters:
- Select theCustom Grouptab and clickAdd.
- Enter a groupNamethat is unique in the group mapping configuration for the current firewall or virtual system. If theNamehas the same value as the Distinguished Name (DN) of an existing AD group domain, the firewall uses the custom group in all references to that name (for example, in policies and logs).
- Specify anLDAP Filterof up to 2,048 UTF-8 characters and clickOK. The firewall doesn’t validate LDAP filters, so it’s up to you to ensure they are accurate.To minimize the performance impact on the LDAP directory server, use only indexed attributes in the filter.
- ClickOKto save your changes.
- Commit your changes.ClickCommit. A commit is necessary before you can use custom groups in policies and objects.After configuring the firewall to retrieve group mapping information from an LDAP server, but before configuring policies based on the groups it retrieves, you must either wait for the firewall to refresh its group mappings cache or refresh the cache manually. To verify which groups you can currently use in policies,access the firewall CLI and run theshow user groupcommand. To determine when the firewall will next refresh the group mappings cache, run theshow user group-mapping statisticscommand and check theNext Action. To manually refresh the cache, run thedebug user-id refresh group-mappingallcommand.
Recommended For You
Recommended videos not found.