Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating logins
Message
From
29/03/2016 15:26:39
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Validating logins
Miscellaneous
Thread ID:
01633943
Message ID:
01633943
Views:
71
I have a mandated scenario where there is one master login to the RDP server. The VFP app requests the user's windows/AD login name and password and validates that the two are correct.

I have a problem with the way I usually would do this, and I do not know another way.

(I can get other info from LDAP object as needed.) For login verification I input the user domain name and password, then use
	loUser = GETOBJECT("WinNT://" + tDomain + "/" + ALLTRIM(tuser) + ",user")
       try
	      loUser.ChangePassword (tpassword,tpassword)   
     catch
           llPasswordVerified = .F.
     endtry

	RetURN llPasswordVerified
Trying to change the password lets me know if I have the correct password, and since I am changing it to what it is now, I am doing no harm.

BUT - this network enforces not using passwords used in the past, so the ChangePassword function as I am using it always fails.

Any suggestions?
Next
Reply
Map
View

Click here to load this message in the networking platform