Technical Tip: Use active directory objects directly in policy
Description
This article describes how to retrieve the latest information when groups are added or deleted on AD LDAP servers for FSSO.
Scope
FortiGate.
Solution
After Active Directory (AD) groups are retrieved from Active Directory, use them in identity-based firewall policies.
It is no longer needed to add remote AD groups to local FSSO groups before using them in firewall policies.
The FortiGate administrator can define how often group information is automatically updated, which allows FortiGate to retrieve the latest information when groups are added or deleted on AD LDAP servers.
For this feature to work, set FSSO Collector Agent to Advanced AD access mode, which is not the default setting for FSSO Collector Agent.
If FSSO Collector Agent is running in default standard mode, FortiGate cannot correctly match group membership of users.
The following is an example of the setting:

- Create an FSSO connector that automatically retrieves and updates AD user groups.
- Go to User & Device -> LDAP Servers.
- Select 'Create New'.
- Set the options and select 'OK'.

- Create a Fortinet Single Sign-On Agent.
- Go to Security Fabric -> Fabric Connectors.
- Select 'Create New'.
- Under SSO/Identity, select 'Fortinet Single Sign-On Agent'.
- Select 'Local' to display the necessary options.

- In the Primary FSSO Agent box, enter the IP address for the FSSO Collector Agent and the correct password for communicating with FSSO Collector Agent.
- In the LDAP Server list, select LDAP1 server.
- Complete the Search Filter option.

To configure the appropriate settings via the CLI:
- Standard Mode uses a simple Domain\Username format and is easier.
- Advanced Mode uses LDAP's CN=User,OU=Name,DC=Domain format, supports nested groups, and requires filtering on the FortiGate.
- The key difference is the naming convention for users/groups and where group filtering occurs, with Advanced mode being more robust for complex setups but Standard mode being simpler for basic needs.
Related articles:
Technical Tip: FSSO - Enabling Secure communication between Collector Agent and DC Agent
Technical Tip: How FSSO works and how to troubleshoot FSSO
Troubleshooting Tip: General troubleshooting for FSSO
Troubleshooting Tip: FSSO Complete troubleshooting for TAC tickets
