What is the difference between authentication with the DirectoryEntry
object vs the IADsOpenDSObject? I have code that works when I use a
provided ID and password with the DirectoryEntry object but fails with
the IADsOpenDSObject. Both objects use the same ID and password
information. Here's the command that fails with an "invalid directory
Dim tempNameSpace as ActiveDS.IADsOpenDSObject
Dim oTemp as Object
tempNameSpace = GetObject("LDAP:")
szPath = "LDAP://test.directory.com:1234/ou=51100751,ou=310476,ou=Business
sUserName = "cn=myAppName,ARsrcType=Applications,o=myCompany"
sPass = "myPass"
oTemp = tempNameSpace.OpenDSObject(szPath, sUserName, sPass,
AuthenticationTypes.ServerBind) '<==== fails
I know this is a basic question, and I have an idea of the answer but
I want to be sure. If I don't figure this out I can't work around my
"Handling of this ADSVALUE is not yet implemented" problem.