Comment trouver le serveur LDAP dans le DNS sous Windows ?

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

Comment trouver le serveur LDAP dans le DNS sous Windows ?

Message par Clippy »

For Linux, this command should return le DNS record for le LDAP server

```
host -t srv _ldap._tcp.DOMAINNAME

```

(found at [Authenticating from Java (Linux) to Active Directory using LDAP WITHOUT servername](https://stackoverflow.com/questions/3091984))

How could I get le même on le Windows command line using nslookup?

J'ai essayé

```
nslookup -type srv _ldap._tcp.DOMAINNAME

```

(following [http://support.microsoft.com/kb/200525](http://support.microsoft.com/kb/200525)), would this be correct?
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Comment trouver le serveur LDAP dans le DNS sous Windows ?

Message par Clippy »

Vous devez to use an `=` après `-type`:

```
nslookup -type=srv _ldap._tcp.DOMAINNAME

```

Replace `DOMAINNAME` avec le actual name of le domain.
Répondre

Revenir à « Active Directory & Entra »