Solved

NT DOMAIN password validation in VB

Posted on 2003-11-18
4
210 Views
Last Modified: 2010-05-01
This is a two part question, and the points may be split as such, but here goes.

1.  I'd like to beable to have my VB app present a user with a login prompt which will control their access level.  I'd like this prompt box to validate the username and password against our Domain Controller directly.

2. I'm using a string like...

db.Open "PROVIDER=MSDASQL;dsn=GP_7;uid=booter;pwd=xXxXxXx;database=dynamics;"

...to open the database connection, but that xXxXxXx password might change in the future.  I'd like to have a form in the program to read and write that Password in the .exe file itself.  Thus a self-modifying .exe.  I know this is not the orthodox method, and I know how to do it in the registry and in a text file, but I want to know if I CAN do it this way, and if having a fixed length String would make it any easier?
This way the actual location of the code in the .exe wouldn't change even if modifications to the file were to happen...

Thanks in advance.

-Scott
0
Comment
Question by:Scott_V
[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
4 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 125 total points
ID: 9774450
0
 
LVL 28

Assisted Solution

by:vinnyd79
vinnyd79 earned 125 total points
ID: 9774458
0
 
LVL 1

Author Comment

by:Scott_V
ID: 10165602
Yeah, you're right.  Sorry about that.  Just hoping for more but the comments I did get were very helpful and deserving of the points...

-Scott
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MsgBox 2 61
Adding to a VBA? 6 85
How to set the sa password in a vb6 code for sql connection 9 63
Copy a range from 1..n excel sheets to one destination sheet 2 66
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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 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