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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP authentication

Status
Not open for further replies.
May 13, 2002
75
GB
Hi,

i'm using some VB6 code to try and authenticate a user from a DCOM component...

Code:
Set oIADS = GetObject("LDAP:").OpenDSObject("LDAP://" &     sNTDomain, sUserName, sPassword, ADS_SECURE_AUTHENTICATION)

If the object is created then login is successful.

This works when my com component is on a server in the same domain or on a server on a different trusted domain, but not if it's on a different non trusted domain on the same network. How can i specifiy which domain to use / authenticate to when authenticating users ?

Thanks

Alistair

Alistair [monkey]
 
I would think that the value of sNTDomain should be equal to the domain name of the domain controller that contains the active directory entry for the specific user logging on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top