Created on
04-16-2023
11:08 PM
Edited on
06-22-2025
01:27 PM
By
Jean-Philippe_P
Description | This article describes how to configure LDAP over a secure connection on FortiManager/FortiAnalyzer. |
Scope |
FortiManager/FortiAnalyzer, Windows Active Directory (AD) will be used as the LDAP server and Certificate Authority (CA). |
Solution |
Note. The 'Server Name/IP' attribute in LDAP settings must match the LDAP Server Certificate CN field or Subject Alternative Name. Allow the required port (389/636) for the communication between FortiManager and the AD.
Configuring Windows AD:
Export CA Certificate:
Configuring LDAPS in FortiManager/FortiAnalyzer:
Test Scenario: Go to FortiManager/FortiAnalyzer GUI and log in with an LDAP user.
Troubleshooting guide:
To check on LDAP debug, look for any error message from the debug output: Enable debugging from FortiManager/FortiAnalyzer:
diagnose debug application auth 8 diagnose debug timestamp enable diagnose debug enable
Once the above debug starts running, log in with the LDAP user and verify the debug output log. Sample output:
Wira-kvm13 # diagnose debug application auth 8 Wira-kvm13 # diagnose debug timestamp enable Wira-kvm13 # diagnose debug enable Wira-kvm13 # 2023-04-16 22:23:10 2023-04-16 22:23:10 s2802: auth request: user=fortinet from=GUI(10.x.x.x) 2023-04-16 22:23:10 s2802: wildcard admin: ldap-user 2023-04-16 22:23:10 s2802: start ldap: ldap-server 2023-04-16 22:23:10 s2802:ldap-server: url: ldaps://labtest.fortilab.com:636 2023-04-16 22:23:10 s2802:ldap-server: binding admin: tadmin 2023-04-16 22:23:10 s2802:ldap-server: got result: Success(0) 2023-04-16 22:23:10 s2802:ldap-server: searching users: OU=labgroup,DC=fortilab,DC=com scope=subtree filter=cn=fortinet attrs=1.1 2023-04-16 22:23:10 s2802:ldap-server: got result: Success(0) 2023-04-16 22:23:10 s2802:ldap-server: dn: CN=fortinet,OU=labgroup,DC=fortilab,DC=com 2023-04-16 22:23:10 s2802:ldap-server: binding user: CN=fortinet,OU=labgroup,DC=fortilab,DC=com 2023-04-16 22:23:11 s2802:ldap-server: got result: Success(0) 2023-04-16 22:23:11 s2802:ldap-server: success 2023-04-16 22:23:11 s2802: wildcard admin matched: ldap-user 2023-04-16 22:23:11 s2802: auth result: success
To disable debug output:
diagnose debug disable
diagnose sniffer packet any “host <server_ip> and port <ldap_port>” 4 0 l
Related articles: |
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.