Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation Error when Attempting to Authenticate User in VB

Status
Not open for further replies.

jwekemp

Programmer
Nov 15, 2001
1
GB
Hi,

Can anyone help me with an LDAP Authentication problem I am experiencing in VB.

I am trying to authenticate a user using LDAP. I am executing the following code and when I execute the last line I am getting an 'Automation Error'.

I am very new to LDAP and don't have much experience. Is this the way to do it or is there a better way.

Please help me.

Thanks

James


Dim dso As IADsOpenDSObject
Dim obj1 As IADs


Set dso = GetObject("LDAP:")

Set obj1 = dso_OpenDSObject("LDAP://ldap.slb.com/o=slb,c=AN", struserName, strPassword, ADS_SECURE_AUTHENTICATION)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top