Skip to main content
Magnitude_8
Explorer
May 21, 2024 11:51 PM UTC
Question

LDAP authentication for admins not working after FortiOS 7.4.4 update

After updating some firewalls to FortiOS 7.4.4 I am no longer able to log onto them using LDAP authentication. Local accounts are not affected.

 

I have tested my credentials on the LDAP server screen and confirmed that I can authenticate, so this looks like a bug in 7.4.4.

 

Anyone else experiencing this issue?

24 replies

navellano
Staff
Staff
May 22, 2024 7:00 AM UTC

Hi Magnitude_8, 

 

Good day! 

 

Could you try to run below debug commands if you encounter an issue: 

 

# diag debug reset

# diag debug console timestamp enable

# diag debug application fnbamd -1

# diag de enable

 

Regards,

Translate
AEK
SuperUser
SuperUser
May 22, 2024 8:04 AM UTC

Can you try recreate on FG one of the affected admins and try again?

 
Translate
AEK
HrM
New Member
May 22, 2024 1:16 PM UTC

I had the same issue, could not login to the FG using LDAP account, but also my SSL VPN stopped working because of the same reason since LDAP accounts are used...

I also tried testing my credentials on the LDAP server screen which was a success, I than tried disabling the option "Secure Connection" (I was using LDAPS) and after i disabled "Secure Connection" it started working again.
I am now again able to login to FG and my SSL VPN is working.

But I still want to use LDAPS, currently only plain LDAP is working for me on 7.4.4.

Translate
pminarik
Staff
Staff
May 22, 2024 1:44 PM UTC

My educated guess would be that maybe the CLI-only option "set server-identity-check" was reset to "enable" state, and that triggered failures due to the LDAP server's certificate either being outdated (SHA1, expired, etc.), or not matching the configured address (The LDAP server address configured on the FGT, be it IP or FQDN, must be included in the SAN field of the certificate to be considered a valid match).

 

Review of the fnbamd outputs (as noted in an earlier comment) + cross-checking against the "config user ldap" settings should help.

Translate
HrM
New Member
May 22, 2024 1:57 PM UTC

good guess and good idea, I went in there to check this, but its still set to "disable" as it was before the upgrade to 7.4.4

 

PS.

Also if I remember correctly in the past when the issue was "server-identity-check" than even the LDAP tests that I was doing while in the LDAP server screen where failing. In this case they where all successful.

Translate
Crimedefender
Visitor III
May 23, 2024 9:15 AM UTC

100% Correct i tested it without Secure Connection and its working. I open a ticket fortigate support the answer was go back to 7.2.8 great. Feature means for me new features they can be buggy but the basics should work. Fortigate should use words like "Beta" "Experimental" maybe better

Translate
DoubleP
New Member
May 31, 2024 8:22 AM UTC

I am having the same issue after upgrading to 7.4.4

Translate
freddiedavis
Visitor III
May 31, 2024 12:50 PM UTC

Same issue here using Google LDAPS - has anyone had any luck getting it to work on 7.4.4 with Google? Turning off secure connection didn't solve it. Thanks

Translate
Debbie_FTNT
Staff & Editor
Staff & Editor
Jun 3, 2024 2:55 PM UTC

Hey freddiedivas,

if you have the issue even after disabling secure connection, that sounds like something else might be going on.

I would suggest that you do the following in FortiGate CLI:

1. Enable this debug:
#dia de reset
#dia de app fnbamd -1
#dia de en
2. In a separate CLI connection, run this command:
#dia test authserver ldap <LDAP server name> <user> <password>
It should look something like this ("win-server" is what the LDAP-server is called in my FortiGate config):
image.png

3. In the first SSH session, you should get some output about FortiGate trying to connect to the LDAP. This might give you some error messages (like SSL connect failed, or admin bind failed, or user bind failed, or similar).

-> I would suggest sharing the output here for us to look over, or opening a support case to have a FortiGate support engineer look the debug over and provide details on whatever error your FortiGate encounters.

 

4. To end the debug output:
#dia de disable
#dia de reset

Translate
Magnitude_8
Explorer
Jun 3, 2024 11:16 PM UTC

None of the suggestions provided so far have worked for me, which included installing a CA cert and disabling security. I feel like this is a bug introduced in 7.4.4.

 

At the very least, I would expect that any issues with LDAP auth would be identified when running a test in the web GUI.

Translate
pminarik
Staff
Staff
Jun 4, 2024 8:25 AM UTC

I'd normally ask for a pcap + full fnbamd debug, but since those will most likely contain sensitive information, you're be better off opening a support ticket to get things sorted out.

Translate
freddiedavis
Visitor III
Jun 4, 2024 7:05 AM UTC

Thanks @Debbie_FTNT, I did manage to fix this in the end - not sure if it will work for you @Magni_IT but might be worth a try, my issue was related to LDAP timeout, increasing the timeout by running the below fixed it for me;

 

config sys global set remoteauthtimeout 10 set ldapconntimeout 999 end

 

 

 

 

more details here - https://community.fortinet.com/t5/FortiGate/Technical-Tip-Increase-the-LDAP-query-timeout/ta-p/189403

Translate
Renderson
Visitor III
Jul 10, 2024 2:27 AM UTC

Same problem here. LDAPS stop working after upgrading to 7.4.4.

Then I found this KB (https://community.fortinet.com/t5/FortiGate/Technical-Tip-LDAPS-certificate-issuer-enforcement/ta-p/316854) that explains that certificate verification is now enforced since this version. The error messages on debug was different compared to the KBs one.

 

While I was trying to reproduce the issue to get the same error message as the KB, I decided to delete the CA certs from the FortiGate. Which then I started to get the exactly same error message "(error:0A000086:SSL routines::certificate verify failed)".

 

Then after that, I re-imported the exactly same CA certs and it fixed the issue. So the solution was to delete and re-import the CA certificates.

 

I hope this helps others.

 

Translate
sferoz
Staff
Staff
Sep 19, 2024 10:31 PM UTC

Good Day,

Kindly note that starting from v7.4.4, the LDAPS/STARTTLS server certificate issuer has been enforced.
When using FOS 7.4.4 GA,7.6.0GA, or later in LDAPS setup, you may encounter an authentication error when using remote login based authenticated by a LDAPS server can be verified in the packet capture 'certificate verify failed' error appears when the root CA is not installed on the FortiGate store.
To prevent this error, import the certificate (root CA) that signed the server certificate into the FortiGate store.

There are times when, even after updating the server root certificate to the FortiGate certificate store, the authentication will fail due to an 'Unknown CA' error. In one case, the certificate was updated under the Local CA store instead of the Remote CA. After reinstalling the root certificate, when the certificate was under the Remote CA, the authentication was successful.

As a result, make sure that the certificate is under the Remote CA in the certificate store. Additionally, ensure that the certificate is correctly downloaded as a CA from the authentication server.

PCAP eg: when an issue happens starting from v7.4.4 due to the root CA is not installed on the FortiGate store we can see an error Alert (Level: Fatal, Description: Unknown CA):
7 0.000000000 10.5.55.75 10.1.1.1 TLSv1.2 695 Server Hello, Certificate, Server Key Exchange, Certificate Request, Server Hello Done
9 0.000000000 10.1.1.1 10.5.55.75 TLSv1.2 73 Alert (Level: Fatal, Description: Unknown CA)

PCAP eg: After root CA is installed in the FGT, we can see Certificate, Client Key Exchange, Change Cipher Spec, Encrypted Handshake Message as e.g. :
7 0.000000000 10.5.55.75 10.1.1.1 TLSv1.2 695 Server Hello, Certificate, Server Key Exchange, Certificate Request, Server Hello Done
9 0.000000000 10.1.1.1 10.5.55.75 TLSv1.2 171 Certificate, Client Key Exchange, Change Cipher Spec, Encrypted Handshake Message

Kindly refer to the below KB for detailed information:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-LDAPS-STARTTLS-certificate-issuer-enforcement/ta-p/316854
https://community.fortinet.com/t5/FortiGate/Technical-Tip-LDAPS-connections-no-longer-work-after-update-to/ta-p/318021

Thanks,
Feroz

Translate
DoubleP
New Member
Sep 23, 2024 6:46 AM UTC

After upgrading to 7.4.5 my issue is gone. LDAP admin logins are working again.

Translate
Magnitude_8
Explorer
Sep 23, 2024 7:03 AM UTC

According to @sferoz, certificate's chains should now be checked. So if you haven't installed the root CA certificate on your device, we have a new bug/change in behaviour in 7.4.5.

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024