[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

ADODB.Connection open return code

Posted on 2003-10-21
2
Medium Priority
?
708 Views
Last Modified: 2007-12-19
Hi Experts,

In the following code, I am trying to get connection to the active directory as well as authenticating the user by giving the user's credentials.


Dim conn As New ADODB.Connection
Dim cmd As New ADODB.Command

conn.Provider = "ADsDSObject"
conn.Open "Active Directory Provider", username, password   ' --> username and password are declared globally


If either or both username and password is incorrect, then will the above statement return any error or error code that I can capture.

If this is a bad idea to authenticate users, then can you please suggest another solution where I can authenticate the user as well as get that user's information from the active directory, with a more generic base url or connection string to connect to the active directory.

Plumppudding
0
Comment
Question by:Plumppudding
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9597637
0
 
LVL 3

Accepted Solution

by:
pg_india earned 80 total points
ID: 9619182
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

656 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