Skip to main content
Acxelsus
Explorer
Jul 6, 2022 12:46 AM UTC
Question

Can't contact LDAP server Fortigate60F

Hi,
Our LDAP server is working before, but after we change our ISP the errors occurs (Can't contact LDAP server).
We can still ping our AD from firewall, and ping firewall from AD.

5 replies

btey
Staff & Editor
Staff & Editor
Jul 6, 2022 1:28 AM UTC

Hi Acxelsus, 

 

You may verify the connection to LDAP server with the following command:

 

# diagnose sniffer packet any "host x.x.x.x and port yy" 4 

 

Replace x.x.x.x to the LDAP server IP and yy to the LDAP port .

 

- verify the outbound interface

- verify if any response from the LDAP server

 

Please check if the following article relevant to your scenario:

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-Status-of-LDAP-server-connected-via-IPsec/ta-p/195558

 

 

Translate
Acxelsus
AcxelsusAuthor
Explorer
Jul 6, 2022 2:09 AM UTC

sniff.PNG
This is the response

Translate
btey
Staff & Editor
Staff & Editor
Jul 6, 2022 3:11 AM UTC

Hi Acxelsus, 

 

What is firewall firmware version?

You may try to run httpsd debug to check the LDAPS negotiation or you may try disable server-identity-check

 

config user ldap
edit xxx>>> Server Name
set server-identity-check disable
end

 

For httpsd debug:

 

# diagnose debug application httpsd -1

# diagnose debug enable

 

Test the connection again. To stop debug:

 

# diagnose debug disable

# diagnose debug reset

 

For your reference:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configuring-LDAP-over-SSL-LDAPS/ta-p/189972

https://community.fortinet.com/t5/Fortinet-Forum/Cannot-contact-LDAP-server/td-p/90065

 

 

Translate
Acxelsus
AcxelsusAuthor
Explorer
Jul 6, 2022 3:33 AM UTC

The firmware version is 7.0.5

ldap.PNG

Still the same, can't contact the ldap server

Translate
btey
Staff & Editor
Staff & Editor
Jul 6, 2022 6:13 AM UTC

Please ensure the CA certificate is correct.

You may perform packet capture for the LDAP connection to get more detail.

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