Provides access to the password to be used by the object for authentication.
ActiveDirectory.Password
Read/Write.
String.
To specify a specific user to bind to a rootDSE object of a domain, enter:
Dim objActiveDirectory, objRootDSE Dim lngBindTime Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory") objActiveDirectory.UserName = "smithjd" objActiveDirectory.Password = "adiscool" objActiveDirectory.BindObject("LDAP://rootDSE", objRootDSE) lngBindTime = objActiveDirectory.BindLast Set objRootDSE = Nothing Set objActiveDirectory = Nothing
This example binds to the rootDSE object of the domain.