Authentication

In ADSI, credentials consisting of a user name and password allow system software to authenticate the identity of a user during the initial system login. Use IADsOpenDSObject::OpenDSObject or the helper function ADsOpenObject to establish a user's credentials for a directory service. If you don't use OpenDSObject, ADSI uses default credentials. Once the system authenticates the user, the user is free to make requests for system resources, access to file shares, and file permissions, as supported by the underlying directory service's security requirements.

The following examples show the use of the OpenDSobject method on different directory services:

Dim MyNamespace As IADsOpenDSObject
 
Set MyNamespace = GetObject("LDAP:")
Set X = MyNamespace.OpenDSObject(DN, UserName, Password, Flags)