Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check password entered by the user is valid in active directory

Status
Not open for further replies.

mdav2

Programmer
Joined
Aug 22, 2000
Messages
363
Location
GB
Is there any way to have the user enter a password and check it against their password in active directory?

We used to have a library called GPLIB that did this with NOVELL and are looking for something similar.

I've looked at the posts referring to windows passwords but these don't seem to work for me.

Mark Davies
Warwickshire County Council
 
I do not know of anything off hand (But that does not mean that there is not and someone else will post the solution.) Maybe a small .net ‘bridge’ program could be created. Fox calls the .Net app, the .Net app does the checking and then passes the results back to Fox. Of course I do not know how to do that either but it is another possible solution.

Lion Crest Software Services
Anthony L. Testi
President
 
WAY BACK WHEN (2008) Mike Gagnon (I'm not going to take credit for it) pointed me to the following link:

It was very useful in pointing me in the right direction for what I needed then. Perhaps it too will give you a direction for follow.

Good Luck,
JRB-Bldr
 
"for follow." ?????

Where is my grammar checker when I could use it?

 
See
Especially see the note: Normally the user only enters his/her password in the windows login screen, which is not as easy to interrogate than the keyboard input towards a normal windows application.

You can see which user is logged in by ID() or Getenv("Username").

Otherwise the mentioned "LogonUser" API call is for example used here:
As KB180548 says you could use LogonUser with LOGON32_LOGON_NETWORK logon type. You don't need to call ImpersonateLoggedOnUser, just check if the Logon succeeds. LogonUser should then return 1 and the token should be >0.

Bye, Olaf.
 
Cheers for the responses people. I'll have to find some time to look at this and if I get it working I'll post back what I did and some code.

Mark Davies
Warwickshire County Council
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top