Created on
06-30-2025
09:50 AM
Edited on
09-02-2025
01:26 AM
By
Anthony_E
| Description | This article describes how to troubleshoot when a report in FortiAnalyzer returns no data when an LDAP query filter is enabled even though logs are present. |
| Scope | FortiAnalyzer. |
| Solution |
Example: In FortiAnalyzer logs, users are in the format FIRSTNAME(dot)LASTNAME (for example, JOHN.DOE):
On the Remote LDAP Server, users John Doe and Jane Doe are part of a user group 'Test_GRP' while the user Bob.Doe is part of the group 'Test_GRP_2.
In FortiAnalyzer, using the default 'Admin and System Events Report' (which shows FortiGate login information) with LDAP Query filter enabled and filtering for the group 'Test_GRP'.
Running the report shows no matching log, even though there are logs for successful logins by Jane Doe and John Doe:
In FortiAnalyzer, using the sqlreportd debugs:
diagnose debug application sqlreportd 255
This shows that the user's information is inthe format FIRSTNAME(space)LASTNAME (example John Doe):
A Packet Capture from FortiAnalyzer to the LDAP server shows that the server is sending the user details after matching the group, but the matching attribute is CN (Common Name).
FortiAnalyzer LDAP Server config (System Settings -> Remote Authentication Servers) has the Common Name identifier set to CN.
To fix the issue, delete the LDAP server config in FortiAnalyzer (System Settings -> Remote Authentication Servers) and add it again with the Common Name Identifier set to sAMAccountName:
Running the same report again shows correct results:
Packet Capture from FortiAnalyzer to the LDAP Server shows attribute sAMAccountName:
And the sqlreportd debugs in FortiAnalyzer show the users fetched are in the correct format FIRSTNAME(dot)LASTNAME, hence matching the data in logs:
Related documents: Technical Tip: Change FortiAnalyzer/FortiManager LDAP cache timeout Filtering report output – FortiAnalyzer Admin Guide |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.