Description
This article describes how to overcome the LDAPS TLS issue while using SSLVPN especially after upgrading the FortiGate.
Solution
#diagnose test authserver ldap <LDAP server_name> <username> <password>
Note :<LDAP server_name> = name of LDAP object on FortiGate (not actual LDAP server name!).For username/password, use any from the AD, but it is recommended (at least at the first stage) to test credentials used in the LDAP object itself.If this credentials will fail then any other will fail as well as the FortiGate will not be able to bind to the LDAP server.CLI Example:#diagnose test authserver ldap LDAP_SERVER user1 passwordAdvanced troubleshooting:To get more information regarding the reason of authentication failure, run the following commands from the CLI:#diagnose debug enable
#diagnose debug application fnbamd 255To stop this debug type:#diagnose debug application fnbamd 0And then run an LDAP athentication test:#diag test authserver ldap AD_LDAP user1 passwordBased on the Fnbamd output ssl negotiation errors should appear.This means that the LDAPS TLS negotiation is not working properly.This can be checked with a sniffer and see which TLS version is presented by the LDAP server using the below command:#diag sniffer packet any ‘host <LDAP server> and port 636> 6 0 aFor example if the LDAP server is presenting TLS1.0 (windows 2008) and the FortiGate is using version 6.2.x, the TLS negotiation will not work.The following command under the LDAP config will fix this issue:#config user ldap
edit <LDAP entry>
set ssl-min-proto-version TLSv1 → this version depends on the TLS version used by the LDAP server
next
endFrom FortiOS V7.2.0, LDAP server configured on FortiGate can authenticate it with client certificate to LDAP server.
# config user ldap
edit <ldap_server>
set client-cert-auth enableset client-cert <FGT_CERT_NAME>
nextend
Refer below doc for more information:
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 2023 Fortinet, Inc. All Rights Reserved.