Skip to main content
Rajan_kohli
Staff
Staff
Jul 28, 2024 9:50 PM UTC

Technical Tip: TACACS+ and LDAP-proxy authentication stopped working after upgrading to FortiOS v7.4.4

Description

This article describes a recent change made in FortiOS v7.4.4 that affects TACACS+ and LDAP-proxy authentication. More specifically, authentication may begin failing due to a connection timeout, even when it worked before upgrading the firmware.

Scope

FortiGate v7.4.4/FortiAnalyzer/FortiManager.

Solution

Starting with FortiOS v7.4.4, a few changes were made in the fnbamd process that handles the authentication on the FortiGate against a remote server.


One of the changes resulted in enforced certificate validation for LDAPS connections, requiring admins to upload the LDAPS server’s CA certificate to the FortiGate.

 

Another change was with the ldapconntimeout setting and what it controlled. Originally, this setting only controlled the timeout used when measuring LDAP TCP session setup, but as of FortiOS v7.4.4, it now also measures the length of time for packet read/write by the fnbamd process.

This is because ldapconntimeout has a very short default value of 500ms, and this can potentially cause issues in the following scenarios:

  • If there are unexpected/random delays with the TACACS+ or LDAPS server that result in communication exceeding the 500ms timeout. For TACACS+, it can be validated by collecting the output of the debug command 'diagnose debug application fnbamd -1' shows TACACS+ reachability timed out.

[601] __tac_plus_conn_timeout-Connction with phx-ise:10.202.x.x timed out.
[910] __tac_plus_error-Ret 10, st = 0.
[94] fnbamd_tac_plus_get_next_authen_type-Next authen type ascii
[933] __tac_plus_error-Conn failed.2026-08-25 03:41:50 [667] fnbamd_cfg_tac_plus_update_reachability-10.202.x.x, conn_fails 1/5


The packet capture indicates that the TACACS+ reply was received after the FIN packet was sent from FortiGate.


KCS-Tacacs-edited2.jpg

 

  • If the client uses Multi-Factor Authentication (MFA) with ldap-proxy, then 500ms may not be sufficient (since users need to respond to MFA push notifications).

  • Note: For an SSL VPN and an IPsec VPN, additional timeout values may be applied (remoteauthtimeout and eap_proxy timeout may be applied, synced starting FortiOS v7.4.8 and v7.6.3. 

 

To work around this issue, for LDAPS or TACACS+, change the ldapconntimeout to 2000ms or greater. If LDAP-proxy on the FortiGate is configured, then change ldapconntimeout to a similar value as remoteauthtimeout using the below commands:

 

config sys global
set ldapconntimeout <time-in-milliseconds>
set remoteauthtimeout <in seconds>
end

 

This new ldapconntimeout value will help to account for any delays with LDAPS or TACACS+ packets, and it will also provide users with enough time to respond to multi-factor push notifications when using LDAP-proxy with MFA.

 

This issue has been resolved in FortiOS versions 7.4.5 and 7.6.1.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT