Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nt authenticate
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Nt authenticate
Divers
Thread ID:
00912466
Message ID:
00912466
Vues:
51
Hello,

We are increasing security in all our apps. However for one division of our company, we would like to maintain new ids and passwords to a minimum. To do so, we thought of allowing the user to login with his/her nt login and password into the app.

I use the following code to get the user name from login

Declare Long WNetGetUserA in "mpr.dll" As GetUserName ;
STRING @lc0, STRING @lcBuffer, LONG @lnSize
lnRetCode = GetUserName("", @lcBuffer, @lnSize )
lcUserName = left(lcBuffer, at(chr(0), lcBuffer)-1)
g_user = lcUserName

Now I need to authenticate the user's password (which will be the same as
their NT authentication) by validating it against the NT's password.
Can you please tell me how can I achieve this functionality ?

Thanks

Dinesh
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform