Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Thanks, Toast

share|improve this question
    
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
add comment

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

share|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
add comment

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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