Skip Navigation Links
Home
+
About
+
Products
+
Support
+
Purchase
+
Search
+
ProtocolVersion (Property of LDAPClient)
Specifies whether to use LDAPv2 or LDAPv3 methods.
Syntax
ProtocolVersion As axldapVersion
Remarks
The default ProtocolVersion is axldapVersion3. The ProtocolVersion property can be set any time, however, the protocol version used to for the duration of a connection server will be the last one specified prior to the call to Connect (see example below for clarification). The LDAPEntry.Rename method is only available on LDAPv3 servers.
Example
Set pLDAP = CreateObject("LDAPClient.3")
pLDAP.ProtocolVersion = 3

' Connecting now will use LDAPv3 protocol
Call pLDAP.Connect("ldapserver")

' Set the protocol version while we're still connected.
' This won't change the current connection, but future
' connections using this LDAPClient will be made using
' the LDAPv2 protocol
pLDAP.ProtocolVersion = 2

pLDAP.Disconnect
' Connecting now will use LDAPv2 protocol
Call pLDAP.Connect("ldapserver")