Solved

External ADSI authentication help - VBscript

Posted on 2007-12-06
1
1,020 Views
Last Modified: 2011-02-28
If a machine is not part of the domain, how can a VB script it runs authenticate to a DC/LDAP server to run a query?

e.g. the included works great from any machine logged into the domain, but I've no idea how to make it work from a machine not on the domain.  

DisplayObjects "LDAP://OU=Voicemailbox Accounts,DC=MyCompany,DC=com", ""
 

Function DisplayObjects( strADsPath, strSpace)

   set objObject = GetObject(strADsPath)

   Wscript.Echo strSpace & strADsPath

   for each objChildObject in objObject

      DisplayObjects objChildObject.ADsPath, strSpace & " "

   next 

End Function

Open in new window

0
Comment
Question by:Marketing_Insists
1 Comment
 
LVL 19

Accepted Solution

by:
Rimvis earned 500 total points
Comment Utility

Does this help?

LDAP Authentication to Active Directory in VBScript
http://www.geocities.com/calinradoni/vbLDAPAuth.html
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now