FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
cysaw
Staff & Editor
Staff & Editor
Article Id 323396
Description This article describes how to troubleshoot when the FortiMail fails to sync with the LDAP server.
Scope

FortiMail.

Solution
  1. Make sure the FortiMail can reach the LDAP server over port 389 (LDAP) or port 636 (LDAPS).
  2. Verify if the below system event log is generated on the system event log:


ldapcached: type=User, file=QueryFactory.cpp, line=561, exception=LDAPException( 4 ) , Connection.cpp:470, 'Error: 'Invalid credentials' during bind to ldap://[LDAP IP]:389/'LDAPException( 4 ) , Connection.cpp:508,

 

  1. Do a packet capture in the FortiMail and reproduce the issue and if a similar error is visible in the pcap file like the screenshot below, it means the LDAP Bind Account credential configured in the FortiMail is not correct.


cysaw_0-1719793892323.png

 

 

  1. Go to Profile -> LDAP -> LDAP profile -> Default Bind Option and make sure the LDAP bind account is configured correctly.

 

cysaw_1-1719793892325.png

 

  1. It should work after the LDAP bind account credential is configured correctly in the FortiMail.
Contributors