Microsoft’s PORTQRY v2 will do this and a great deal more … hopefully, not too much for your requirements.  For example –

 

C:\>portqry -n falcon.msetechnology.lab -e 389

 

Querying target system called:

 

 falcon.msetechnology.lab

 

Attempting to resolve name to IP address...

 

 

Name resolved to 172.30.0.201

 

querying...

 

TCP port 389 (ldap service): LISTENING

 

Using ephemeral source port

Sending LDAP query to TCP port 389...

 

LDAP query response:

 

 

currentdate: 08/04/2006 13:05:03 (unadjusted GMT)

subschemaSubentry: CN=Aggregate,CN=Schema,CN=Configuration,DC=mset,DC=lab

dsServiceName: CN=NTDS Settings,CN=FALCON,CN=Servers,CN=Office,CN=Sites,CN=Configuration,DC=mse

t,DC=lab

namingContexts: DC=mset,DC=lab

defaultNamingContext: DC=mset,DC=lab

schemaNamingContext: CN=Schema,CN=Configuration,DC=mset,DC=lab

configurationNamingContext: CN=Configuration,DC=mset,DC=lab

rootDomainNamingContext: DC=mset,DC=lab

supportedControl: 1.2.840.113556.1.4.319

supportedLDAPVersion: 3

supportedLDAPPolicies: MaxPoolThreads

highestCommittedUSN: 10452139

supportedSASLMechanisms: GSSAPI

dnsHostName: falcon.msetechnology.lab

ldapServiceName: mset.lab:[EMAIL PROTECTED]

serverName: CN=FALCON,CN=Servers,CN=Office,CN=Sites,CN=Configuration,DC=mset,DC=lab

supportedCapabilities: 1.2.840.113556.1.4.800

isSynchronized: TRUE

isGlobalCatalogReady: TRUE

domainFunctionality: 2

forestFunctionality: 2

domainControllerFunctionality: 2

 

 

======== End of LDAP query response ========

 

 

--
Dean Wells
MSEtechnology
* Email: [EMAIL PROTECTED]
http://msetechnology.com

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bahta, Nathaniel V CTR USAF NASIC/SCNA
Sent: Friday, August 04, 2006 8:54 AM
To: [email protected]
Subject: [ActiveDir] LDAP Ping

 

Hey all,

 

Does anyone know of a command line utility that allows you to test ldap connections?  We have a dc that hangs, but remains pingable and I would like to do ldap pings to it to as well as rpc pings.  I know about the rpc ping utility, but I wanted to test for ldap connectivity as well.  Does anyone know of a utility like this?

 

 

Thanks,

 

Nate

Reply via email to