• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

NT DOMAIN password validation in VB

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
Scott_V
Asked:
Scott_V
  • 2
2 Solutions
 
vinnyd79Commented:
0
 
Scott_VAuthor Commented:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now