Ping is a tool aimed for testing (echo) replies depuis network hosts using le ICMP protocol. LDAP is a protocol that par défaut lives on TCP port 389, et does pas directly communicate avec ICMP.
If you're juste looking for a tool to give you a quick "yeah, port is open et available", alors you can juste do a telnet query for port 389 (LDAP) ou port 636 (LDAP SSL) avec telnet.
telnet hostip 389
Vous devriez see something like this:
root@LINXWII:/home/l0c0b0x# telnet ldapsrvip 389
Trying 10.2.2.101...
Connected to mainldapsrv.example.com.
Escape character is '^]'.
Lots of people plutôt use nmap, so you can aussi do that:
nmap hostip 389
Il y a aussi a Microsoft tool called PortQry that will give you a lot of info about a port(s):
PortQry.exe -n hostip -p tcp -e 389
just replace 389 avec 636 for LDAP SSL