Is there a function built into VB or ADSI that can verify a Active Directory username and password? We have a database system that we want to add a level of security to. I want the user to type in their window username and password into two text boxes. Then I want VB to check those credentials against Active Directory and grant access to the next form if username and password are correct, and display an error message and deny access if not.
I have come accross a few documents in the internet that refrerce using the LogonUser() function in advapi32.dll to accoplish this. I tried to reference dll in my VB6 code, but I recieved the following error: "Can't add reference to the specified file." What am I doing wrong, or is there a better way to accomplish this?
Thanks in advanced!