Hi,
We have a fortigate 100C running 5.4 code, we want to setup a secondary ldap server ( backup) for ssl users, when we try to connect the ldap ( over a vpn tunnel) we for the below error message
Invalid LDAP server: Timed out |and | Invalid LDAP server: Can't contact LDAP server
We are not blocking the traffic ( all permit ports/ips) what could be the problem? I tried to reach the server from the firewall but need to specify a source ip otherwise the ping is not working.
thank you,
You may to increase ldap timeout. Default value is 500 milliseconds
config system global
set ldapconntimeout xxx
end
Hi!
The FG uses public ip for your WAN-Interface so you need to put that in crypto for the VPN-Tunnel. Don´t forget host/sunbnet for the LDAP-Server on the remote side :)
Negative, you don't have to do that. Just apply the source ip address that's allowed over the vpn-tunnel
e.g
config user ldap
edit "TESTAD"
set server "10.12.1.1"
set secondary-server ''
set tertiary-server ''
set source-ip 10.10.10.1
set cnid "cn"
set dn ''
set type simple
set group-member-check user-attr
set secure disable
set port 389
set password-expiry-warning disable
set password-renewal disable
set member-attr "memberOf"
unset search-type
next
end
in this case 10.0.10.1 would be my fortigate inside lan address, loop,etc....
Ken
PCNSE
NSE
StrongSwan
Emnoc's source-ip assignment did the trick for me.
I know its a bit old, but I have a better answer for this for new comers.
The problem is not related to time-out , because the ldap is 1 ms away from the fortigate.
its not related to source-ip because I build a simple scenario and I got the same error , even without the vpn-tunnel.
The solution was in Distinguished Name.
And by the way, there is a misunderstanding here about the DN, its where you want the fortigate to start searching for the users. make sure you define it correctly.
Regards,
Mahmood
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1740 | |
1108 | |
752 | |
447 | |
240 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.