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

Binding to a remote AD 1

Status
Not open for further replies.

IainBuchanan

Technical User
Aug 1, 2000
16
GB
Hi,

I've got what I think is an elementary question, and I'm kicking myself for not being able to think of the answer...

I'm trying to bind to a directory that I'm not logged into, and obviously need to pass login credentials of an account within the remote AD... How do I do it?!

Iain Buchanan
 
UserUPN = r.daman@drksss.com"
Password = "test123"
Set DSO = GetObject("LDAP:")
Set obj = DSO.OpenDSObject("LDAP://cn=users,dc=...", UserUPN, Password)
 
If there is a trust between the domain just bind
with :

LDAP://DOMAIN/ou=users,dc=DOMAIN,dc=com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top