Skip to main content
v20100
New Member
December 18, 2018
Question

Cannot contact LDAP server

  • December 18, 2018
  • 2 replies
  • 6390 views

Hi

We have LDAPS setup on Azure (Domain Service enabled).

If we querry the ldap server from a Linux box, it works fine.

We want to setup LDAP authentication on the Fortigate to authenticate SSLVPN users.

 

I tried all sort of syntax, but it always fail with "Can't contact LDAP server", no matter the DN, using cn, uid or samaccountname, etc

Tried the debug commands as well, but it failed straightaway with a similar message

On Fortigate, the ldap server is set with port 636, with no Secure Connection

 

Cannot see any traffic on port 636 (probably not using the correct commands for it!), and not sure if it is enabled by default from the firewall itself to the internet.

 

As anyone ever been able to setup LDAPS from Azure with Fortigate? It looks like most of the documentation refer to active directory on premise.

 

Any help would be appreciated

 

Thanks

 

 

 

    2 replies

    warshad
    Staff
    Staff
    December 8, 2021

     

    Hi,

     

    Please try to apply the following commands via cli and try to connect.

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

    if this does not help please debug

    diag debug enable
    diag debug app fnbamd -1

     

     

    Markus_M
    Staff & Editor
    Staff & Editor
    December 8, 2021

    Hi v20100,

     

    if you do not see any traffic and the LDAP server on FortiGate is configured to use port 636. Make sure to test different, as this could be on a different network level.

    Does a ping work?

    If not, run a sniffer as follows:

    diag sniffer packet any 'host <LDAP-IP>' 4 0 a

    It will show you, if there is traffic, on which interface this is leaving and what traffic this might be. ICMP should at least leave the FortiGate (and hopefully getting a response as well).

    If you are sure which interface, the traffic must exit:

    diag sniffer packet <interface> 4 0 a

    Then leave this running for some time. You might see arp requests for the IP that are not getting responses.

     

    Best regards,

     

    Markus

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.