Skip Navigation Links
Home
+
About
+
Products
+
Support
+
Purchase
+
Search
+
Connect (Method of LDAPClient)
Authenticate and bind to the directory server.
Syntax
Connect(ServerName As String, [ Port As Long = -1 ], [ UserName As String = "" ], [ Password As String = "" ], [ UseSSL As Boolean = False ])
Remarks
If an incorrect username and/or password is provided, then a trappable error will occur. If no password is specified then anonymous authentication is attempted, even if a username is specified. The client attempts to use LDAP v3, and a trappable error will occur if the server does not support it. Note that most LDAP Servers require the username to be in well-formed LDAP syntax (ex: cn=someusername).
Example
Set pLDAP = CreateObject("LDAPClient.3")
Call pLDAP.Connect("ldapserver",,"cn=michalp", "pwd")