Is it possible to check the LDAP version in Windows Server 2003 without running a powershell script?

Thanks, Toast

link|improve this question

74% accept rate
Do you mean what version of LDAP your Active Directory installation is using? – squillman Aug 6 '10 at 17:45
Absolutely, forgive me :) – ToastMan Aug 6 '10 at 17:53
feedback

2 Answers

up vote 2 down vote accepted

the following vbscript will work :

Set objRootDSE = GetObject("LDAP://RootDSE")

For Each strVersion In objRootDSE.Get("SupportedLDAPVersion")
  Wscript.Echo "LDAP Version: " & strVersion 
Next

returns :

LDAP Version: 3

LDAP Version: 2

see http://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2general/thread/89ac522b-d21e-4b2c-ba28-0b3cd7c96b9d

link|improve this answer
Many thanks for your excellent help, just a little note: The 'Next' at the very end belongs to a new line, otherwise the script returns a punch to the kidney. Toast. – ToastMan Aug 9 '10 at 19:01
feedback

Unless I'm very much mistaken, AD's LDAP supports the LDAPv3 protocol uniformly.

link|improve this answer
I believe that is a well known fact. – ToastMan Aug 6 '10 at 17:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.