Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating logins
Message
De
29/03/2016 15:26:39
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Validating logins
Divers
Thread ID:
01633943
Message ID:
01633943
Vues:
70
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform