Information générale
Catégorie:
Fonctions Windows API
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement