Existe-t-il un moyen de faire un ping LDAP ?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Existe-t-il un moyen de faire un ping LDAP ?

Message par Clippy »

Is there a way to ping et ldap server? J'ai seen ldapsearch et ldapwhoami mais would appreciate something a bit more like ping. Essentially we have a bip address in front of a selection of LDAP servers et are looking to confirm qui one we are connecting to.
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Existe-t-il un moyen de faire un ping LDAP ?

Message par Clippy »

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](http://support.microsoft.com/kb/310099) 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*
Répondre

Revenir à « Active Directory & Entra »