Skip to main content
Acxelsus
Explorer
July 6, 2022
Question

Can't contact LDAP server Fortigate60F

  • July 6, 2022
  • 4 replies
  • 6906 views

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.

4 replies

btey
Staff & Editor
Staff & Editor
July 6, 2022

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

 

 

Acxelsus
AcxelsusAuthor
Explorer
July 6, 2022

sniff.PNG
This is the response

btey
Staff & Editor
Staff & Editor
July 6, 2022

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

 

 

Acxelsus
AcxelsusAuthor
Explorer
July 6, 2022

The firmware version is 7.0.5

ldap.PNG

Still the same, can't contact the ldap server

btey
Staff & Editor
Staff & Editor
July 6, 2022

Please ensure the CA certificate is correct.

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