Solved

External ADSI authentication help - VBscript

Posted on 2007-12-06
1
1,021 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
ID: 20426985

Does this help?

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help in WHSCRIPT 9 47
Excel object stays open 19 71
vb6 connector to SQL Server 2 34
How does CurrentUser work? 10 31
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 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

14 Experts available now in Live!

Get 1:1 Help Now