Solved

NT DOMAIN password validation in VB

Posted on 2003-11-18
4
204 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

760 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

17 Experts available now in Live!

Get 1:1 Help Now