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 login with 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 enable debug log is, login with the LDAP user and verify the debug output log.
Sample output:
Wira-kvm13 # diag debug application auth 8 Wira-kvm13 # di de timestamp en Wira-kvm13 # di de en 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:
diag debug disable
diagnose sniffer packet any “host <server_ip> and port <ldap_port>” 4 0 l |
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 2024 Fortinet, Inc. All Rights Reserved.